ANSIBLE CHEAT SHEET
Oct 2, 2022
# Run the playbook in check Mode or Dry Run.
$ ansible-playbook playbook1.yaml — — check# if you want to start execute specific tasks.
$ ansible-playbook playbook2.yaml --start-at-tasks "Start httpd service"- name: Install httpd
hosts: all
tasks:
- name: Install httpd
yum:
name: httpd
state: installed- name: Start httpd service
service:
name: httpd
state: started