Play with tags
This commit is contained in:
parent
4ce39bb4e9
commit
e0838a61b9
4 changed files with 54 additions and 6 deletions
|
|
@ -1,10 +1,17 @@
|
|||
---
|
||||
- name: Include vars for {{ ansible_os_family }}
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
- block:
|
||||
- name: Include vars for {{ ansible_os_family }}
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Define repo for {{ ansible_os_family }}
|
||||
include_tasks: add_repo_{{ ansible_os_family }}.yml
|
||||
- name: Install Ansible
|
||||
include_tasks: "install.yml"
|
||||
when:
|
||||
- not ansible_uninstall|bool
|
||||
|
||||
- name: Install packages
|
||||
package: name='{{ ansible_packages }}' state=latest update_cache=yes
|
||||
- name: UnInstall Ansible
|
||||
include_tasks: "uninstall.yml"
|
||||
when:
|
||||
- ansible_uninstall|bool
|
||||
|
||||
tags:
|
||||
- ansible
|
||||
Loading…
Add table
Add a link
Reference in a new issue