Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:ansible-pull [2018/07/21 00:30] billdozor [Playbook: Role Example] |
linux_wiki:ansible-pull [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 49: | Line 49: | ||
Example of a playbook tailored for pulling. | Example of a playbook tailored for pulling. | ||
- | < | + | < |
# File: myplaybook.yml | # File: myplaybook.yml | ||
# Description: | # Description: | ||
Line 71: | Line 71: | ||
\\ | \\ | ||
- | File: myrole/ | + | File: myrole/ |
- | < | + | < |
- name: Install my awesome app list | - name: Install my awesome app list | ||
yum: | yum: | ||
Line 81: | Line 81: | ||
\\ | \\ | ||
- | File: myrole/ | + | File: myrole/ |
- | < | + | < |
my_awesome_apps: | my_awesome_apps: | ||
- myapp1 | - myapp1 | ||
Line 89: | Line 89: | ||
\\ | \\ | ||
- | File: myrole/ | + | File: myrole/ |
- | < | + | < |
- name: restart my awesome service | - name: restart my awesome service | ||
service: | service: |