Skip to content

Instantly share code, notes, and snippets.

@halberom
Last active January 2, 2016 15:29
Show Gist options
  • Save halberom/8323401 to your computer and use it in GitHub Desktop.
Save halberom/8323401 to your computer and use it in GitHub Desktop.
doing an include of a deploy task
[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
---
# deploy/tasks/ntp.yml
- name: be sure ntp is installed
yum: pkg=ntp state=installed
---
- 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