Compare commits

..

No commits in common. "255b812b54df0ff77429d8fec027bc8d141cbb9d" and "a5a6e297ffade245ff5efdb71e4c551757b3575f" have entirely different histories.

2 changed files with 10 additions and 17 deletions

View file

@ -40,8 +40,6 @@
community.general.timezone: community.general.timezone:
name: "{{ system_timezone }}" name: "{{ system_timezone }}"
when: "system_timezone" when: "system_timezone"
tags:
- timezone
become: true become: true
- name: Create necessary groups - name: Create necessary groups
@ -50,8 +48,6 @@
state: present state: present
loop: "{{ system_users | map(attribute='groups') | flatten | unique }}" loop: "{{ system_users | map(attribute='groups') | flatten | unique }}"
when: "system_users" when: "system_users"
tags:
- groups
become: true become: true
- name: Set up system users - name: Set up system users
@ -63,18 +59,15 @@
shell: "{{ item.shell | default('/bin/bash') }}" shell: "{{ item.shell | default('/bin/bash') }}"
loop: "{{ system_users }}" loop: "{{ system_users }}"
when: "system_users" when: "system_users"
tags:
- users
- groups
become: true become: true
- name: Add authorized SSH keys - name: Add authorized SSH keys
ansible.posix.authorized_key: ansible.posix.authorized_key:
user: "{{ item.0.name }}" user: "{{ item.name }}"
state: present state: present
key: "{{ item.1 }}" key: "{{ item.authorized_keys }}"
loop: "{{ system_users | subelements('authorized_keys', skip_missing=True) }}" loop: "{{ system_users }}"
when: system_users is defined when: system_users is defined and item.authorized_keys is defined
tags: tags:
- ssh - ssh
become: true become: true

View file

@ -49,12 +49,12 @@
# name: incus-install # name: incus-install
# tags: incus # tags: incus
# - name: Raise infrastructure - name: Raise infrastructure
# hosts: localhost hosts: localhost
# tags: infrastructure tags: infrastructure
# tasks: tasks:
# - ansible.builtin.import_role: - ansible.builtin.import_role:
# name: infrastructure name: infrastructure
# ansible-galaxy install geerlingguy.docker # ansible-galaxy install geerlingguy.docker
- name: Install docker - name: Install docker