add tags
This commit is contained in:
parent
c69615f35c
commit
c26ad20cb7
|
@ -15,4 +15,8 @@ example playbook:
|
|||
|
||||
All configurable variables reside in `defaults/main.yml`. If you wish to modify them per host, add them to your `/etc/ansible/host_vars/yourhostname.yml` of for group of hosts in `/etc/ansible/group_vars/yourgroup/main.yml` etc.
|
||||
|
||||
You can deploy only host file with `--tags hosts`.
|
||||
## Tags
|
||||
* `apt`: to update packages
|
||||
* `hosts`: to deploy only host file
|
||||
* `ssh`: to deploy ssh
|
||||
* `shouter`: to deploy shouter
|
|
@ -7,3 +7,5 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
tags: hosts
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
|
||||
- include_tasks: apt.yml
|
||||
tags: apt
|
||||
|
||||
- include_tasks: mkdir.yml
|
||||
|
||||
|
@ -20,5 +21,6 @@
|
|||
|
||||
- include_tasks: shouter.yml
|
||||
when: base_shouter is defined
|
||||
tags: shouter
|
||||
|
||||
- include_tasks: configs.yml
|
||||
|
|
Loading…
Reference in New Issue