Compare commits
No commits in common. "255b812b54df0ff77429d8fec027bc8d141cbb9d" and "a5a6e297ffade245ff5efdb71e4c551757b3575f" have entirely different histories.
255b812b54
...
a5a6e297ff
2 changed files with 10 additions and 17 deletions
|
|
@ -40,8 +40,6 @@
|
|||
community.general.timezone:
|
||||
name: "{{ system_timezone }}"
|
||||
when: "system_timezone"
|
||||
tags:
|
||||
- timezone
|
||||
become: true
|
||||
|
||||
- name: Create necessary groups
|
||||
|
|
@ -50,8 +48,6 @@
|
|||
state: present
|
||||
loop: "{{ system_users | map(attribute='groups') | flatten | unique }}"
|
||||
when: "system_users"
|
||||
tags:
|
||||
- groups
|
||||
become: true
|
||||
|
||||
- name: Set up system users
|
||||
|
|
@ -63,18 +59,15 @@
|
|||
shell: "{{ item.shell | default('/bin/bash') }}"
|
||||
loop: "{{ system_users }}"
|
||||
when: "system_users"
|
||||
tags:
|
||||
- users
|
||||
- groups
|
||||
become: true
|
||||
|
||||
- name: Add authorized SSH keys
|
||||
ansible.posix.authorized_key:
|
||||
user: "{{ item.0.name }}"
|
||||
user: "{{ item.name }}"
|
||||
state: present
|
||||
key: "{{ item.1 }}"
|
||||
loop: "{{ system_users | subelements('authorized_keys', skip_missing=True) }}"
|
||||
when: system_users is defined
|
||||
key: "{{ item.authorized_keys }}"
|
||||
loop: "{{ system_users }}"
|
||||
when: system_users is defined and item.authorized_keys is defined
|
||||
tags:
|
||||
- ssh
|
||||
become: true
|
||||
|
|
|
|||
12
site.yaml
12
site.yaml
|
|
@ -49,12 +49,12 @@
|
|||
# name: incus-install
|
||||
# tags: incus
|
||||
|
||||
# - name: Raise infrastructure
|
||||
# hosts: localhost
|
||||
# tags: infrastructure
|
||||
# tasks:
|
||||
# - ansible.builtin.import_role:
|
||||
# name: infrastructure
|
||||
- name: Raise infrastructure
|
||||
hosts: localhost
|
||||
tags: infrastructure
|
||||
tasks:
|
||||
- ansible.builtin.import_role:
|
||||
name: infrastructure
|
||||
|
||||
# ansible-galaxy install geerlingguy.docker
|
||||
- name: Install docker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue