Ansible
AND/OR
- name: stop app
shell: pidof java | xargs -r kill -9 || /bin/true
when: pid.stdout != "" and (appUpdated|changed or configUpdated|changed)
Overriding args to roles
roles:
- { role: app_user, name: Ian }
- { role: app_user, name: Terry }
- { role: app_user, name: Graham }
- { role: app_user, name: John }
Conditional roles
- { role: hazelcast, when: target_env=='dev' } # hazelcast only required if providing service
- { role: nginx, when: target_env=='dev' }
- bootstrap # unconditional role
Role Dependencies
- name: stop app
shell: pidof java | xargs -r kill -9 || /bin/true
when: pid.stdout != "" and (appUpdated|changed or configUpdated|changed)
Overriding args to roles
roles:
- { role: app_user, name: Ian }
- { role: app_user, name: Terry }
- { role: app_user, name: Graham }
- { role: app_user, name: John }
Conditional roles
- { role: hazelcast, when: target_env=='dev' } # hazelcast only required if providing service
- { role: nginx, when: target_env=='dev' }
- bootstrap # unconditional role
Role Dependencies
Comments