linux_wiki:ansible-pull

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux_wiki:ansible-pull [2018/07/21 00:31]
billdozor [Playbook: Role Example]
linux_wiki:ansible-pull [2018/07/21 00:32]
billdozor [Playbook: Role Example]
Line 72: Line 72:
 \\ \\
 File: myrole/tasks/main.yml  -> Installs a list of applications using the variable "my_awesome_apps" and notifies a handler if anything changes File: myrole/tasks/main.yml  -> Installs a list of applications using the variable "my_awesome_apps" and notifies a handler if anything changes
-<code bash>+<code yaml>
 - name: Install my awesome app list - name: Install my awesome app list
   yum:   yum:
Line 82: Line 82:
 \\ \\
 File: myrole/vars/main.yml  -> Variable that contains a list of applications to install File: myrole/vars/main.yml  -> Variable that contains a list of applications to install
-<code bash>+<code yaml>
 my_awesome_apps: my_awesome_apps:
  - myapp1  - myapp1
Line 90: Line 90:
 \\ \\
 File: myrole/vars/handlers.yml  -> Handler that restarts a service when triggered File: myrole/vars/handlers.yml  -> Handler that restarts a service when triggered
-<code bash>+<code yaml>
 - name: restart my awesome service - name: restart my awesome service
   service:   service:
  • linux_wiki/ansible-pull.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)