move tags into main.yml instead

This commit is contained in:
Jesper Hess 2022-07-15 18:03:40 +02:00 committed by Gitea
parent 964a6c0793
commit c6a3cb5150
5 changed files with 5 additions and 8 deletions

View file

@ -10,7 +10,6 @@
- haveged - haveged
- mosh - mosh
- srvadmin-all # Dell OpenManage - srvadmin-all # Dell OpenManage
tags: install-base-packages
- name: Install necessary packages via pip - name: Install necessary packages via pip
pip: pip:
@ -19,4 +18,3 @@
packages: packages:
- docker - docker
- docker-compose - docker-compose
tags: install-base-packages

View file

@ -3,9 +3,8 @@
apt_repository: apt_repository:
repo: "deb https://linux.dell.com/repo/community/openmanage/10101/focal focal main" repo: "deb https://linux.dell.com/repo/community/openmanage/10101/focal focal main"
state: "present" state: "present"
tags: setup-custom-apt
- name: update apt cache - name: update apt cache
apt: apt:
update_cache: yes update_cache: yes
tags: setup-custom-apt

View file

@ -1,6 +1,10 @@
--- ---
- import_tasks: custom-apt-repos.yml - import_tasks: custom-apt-repos.yml
tags: [setup-custom-apt]
- import_tasks: upgrade.yml - import_tasks: upgrade.yml
tags: [do-full-system-upgrade]
- import_tasks: base.yml - import_tasks: base.yml
tags: [install-base-packages]
- import_tasks: users.yml - import_tasks: users.yml
tags: [setup-users]

View file

@ -3,4 +3,3 @@
apt: apt:
update_cache: yes update_cache: yes
upgrade: full upgrade: full
tags: "do-full-system-upgrade"

View file

@ -7,7 +7,6 @@
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:
@ -16,7 +15,6 @@
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:
@ -25,4 +23,3 @@
with_subelements: with_subelements:
- "{{ users | default([]) }}" - "{{ users | default([]) }}"
- keys - keys
tags: "setup-users"