Last active
January 2, 2016 15:29
-
-
Save halberom/8323401 to your computer and use it in GitHub Desktop.
doing an include of a deploy task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@server ansible]# ansible-playbook site.yml | |
PLAY [all] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [localhost] | |
TASK: [be sure ntp is installed] ********************************************** | |
ok: [localhost] | |
PLAY RECAP ******************************************************************** | |
localhost : ok=2 changed=0 unreachable=0 failed=0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# deploy/tasks/ntp.yml | |
- name: be sure ntp is installed | |
yum: pkg=ntp state=installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: | |
- include: deploy/tasks/ntp.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment