systemd_networkd(role): introd. role for deploy. systemd-networkd config
This commit is contained in:
parent
987327863a
commit
ed8670f7da
5 changed files with 38 additions and 0 deletions
|
@ -88,6 +88,8 @@ base_config_hosts:
|
||||||
tickets:
|
tickets:
|
||||||
wiki:
|
wiki:
|
||||||
zammad:
|
zammad:
|
||||||
|
systemd_networkd_hosts:
|
||||||
|
hosts:
|
||||||
docker_compose_hosts:
|
docker_compose_hosts:
|
||||||
hosts:
|
hosts:
|
||||||
ccchoir:
|
ccchoir:
|
||||||
|
|
|
@ -4,6 +4,11 @@
|
||||||
roles:
|
roles:
|
||||||
- base_config
|
- base_config
|
||||||
|
|
||||||
|
- name: Ensure systemd-networkd config deployment on systemd_networkd_hosts
|
||||||
|
hosts: systemd_networkd_hosts
|
||||||
|
roles:
|
||||||
|
- systemd_networkd
|
||||||
|
|
||||||
- name: Ensure deployment of infrastructure authorized keys
|
- name: Ensure deployment of infrastructure authorized keys
|
||||||
hosts: infrastructure_authorized_keys_hosts
|
hosts: infrastructure_authorized_keys_hosts
|
||||||
roles:
|
roles:
|
||||||
|
|
11
roles/systemd_networkd/README.md
Normal file
11
roles/systemd_networkd/README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Role `systemd_networkd`
|
||||||
|
|
||||||
|
Deploys the given systemd-networkd configuration files.
|
||||||
|
|
||||||
|
## Support Distributions
|
||||||
|
|
||||||
|
Should work on Debian-based distributions.
|
||||||
|
|
||||||
|
## Required Arguments
|
||||||
|
|
||||||
|
- `systemd_networkd__config_dir`: Directory with systemd-networkd configs to deploy.
|
6
roles/systemd_networkd/meta/argument_specs.yaml
Normal file
6
roles/systemd_networkd/meta/argument_specs.yaml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
argument_specs:
|
||||||
|
main:
|
||||||
|
options:
|
||||||
|
systemd_networkd__config_dir:
|
||||||
|
type: path
|
||||||
|
required: true
|
14
roles/systemd_networkd/tasks/main.yaml
Normal file
14
roles/systemd_networkd/tasks/main.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
- name: ensure rsync is installed
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: rsync
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: synchronize systemd-networkd configs
|
||||||
|
ansible.posix.synchronize:
|
||||||
|
src: "{{ systemd_networkd__config_dir }}"
|
||||||
|
dest: "/etc/systemd/network"
|
||||||
|
archive: false
|
||||||
|
recursive: true
|
||||||
|
delete: true
|
||||||
|
become: true
|
Loading…
Add table
Add a link
Reference in a new issue