forked from data.coop/ansible
Add some more useful ansible tags
- do-full-system-upgrade - setup-users - install-base-packages
This commit is contained in:
parent
70dff33044
commit
964a6c0793
|
@ -19,3 +19,4 @@
|
||||||
packages:
|
packages:
|
||||||
- docker
|
- docker
|
||||||
- docker-compose
|
- docker-compose
|
||||||
|
tags: install-base-packages
|
||||||
|
|
|
@ -3,3 +3,4 @@
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
upgrade: full
|
upgrade: full
|
||||||
|
tags: "do-full-system-upgrade"
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
update_password: "on_create"
|
update_password: "on_create"
|
||||||
groups: "{{ item.groups }}"
|
groups: "{{ item.groups }}"
|
||||||
loop: "{{ users | default([]) }}"
|
loop: "{{ users | default([]) }}"
|
||||||
|
tags: "setup-users"
|
||||||
|
|
||||||
- name: "Add ssh authorized_keys"
|
- name: "Add ssh authorized_keys"
|
||||||
authorized_key:
|
authorized_key:
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
with_subelements:
|
with_subelements:
|
||||||
- "{{ users | default([]) }}"
|
- "{{ users | default([]) }}"
|
||||||
- keys
|
- keys
|
||||||
|
tags: "setup-users"
|
||||||
|
|
||||||
- name: "Add ssh authorized_keys to root user"
|
- name: "Add ssh authorized_keys to root user"
|
||||||
authorized_key:
|
authorized_key:
|
||||||
|
@ -23,3 +25,4 @@
|
||||||
with_subelements:
|
with_subelements:
|
||||||
- "{{ users | default([]) }}"
|
- "{{ users | default([]) }}"
|
||||||
- keys
|
- keys
|
||||||
|
tags: "setup-users"
|
||||||
|
|
Loading…
Reference in a new issue