Skip to content
Snippets Groups Projects
Commit 9d9f322d authored by Jörg Sachse's avatar Jörg Sachse
Browse files

chore: use FQCNs for all modules

parent 03675e63
No related branches found
No related tags found
No related merge requests found
--- ---
- name: check if mountpoints exist - name: check if mountpoints exist
stat: ansible.builtin.stat:
path: "{{ item.name }}" path: "{{ item.name }}"
loop: "{{ vault_nfs_mounts | flatten(levels=1) }}" loop: "{{ vault_nfs_mounts | flatten(levels=1) }}"
register: missing_mountpoints register: missing_mountpoints
tags: [ci] tags: [ci]
- name: show missing mountpoints - name: show missing mountpoints
debug: ansible.builtin.debug:
# var: missing_mountpoints # var: missing_mountpoints
msg: "{{ item }}" msg: "{{ item }}"
loop: "{{ missing_mountpoints.results | flatten(levels=1) }}" loop: "{{ missing_mountpoints.results | flatten(levels=1) }}"
- name: create missing mountpoints so Molecule tests don't fail - name: create missing mountpoints so Molecule tests don't fail
file: ansible.builtin.file:
path: "{{ item.item.name }}" path: "{{ item.item.name }}"
owner: "{{ vault_nfs_owner }}" owner: "{{ vault_nfs_owner }}"
group: "{{ vault_nfs_group }}" group: "{{ vault_nfs_group }}"
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
tags: [ci] tags: [ci]
- name: NFS-Shares mounten - name: NFS-Shares mounten
mount: ansible.posix.mount:
name: "{{ item.name }}" name: "{{ item.name }}"
src: "{{ item.src }}" src: "{{ item.src }}"
state: "{{ item.state | default('mounted') }}" state: "{{ item.state | default('mounted') }}"
......
--- ---
- name: Verzeichnis für Unitfiles erstellen - name: Verzeichnis für Unitfiles erstellen
file: ansible.builtin.file:
path: "/etc/systemd/user/" path: "/etc/systemd/user/"
state: directory state: directory
mode: "755" mode: "755"
- name: Systemd-Unitfiles installieren - name: Systemd-Unitfiles installieren
template: ansible.builtin.template:
src: "etc/systemd/user/{{ item.key }}.service.j2" src: "etc/systemd/user/{{ item.key }}.service.j2"
dest: "/etc/systemd/user/{{ item.key }}.service" dest: "/etc/systemd/user/{{ item.key }}.service"
owner: "root" owner: "root"
......
--- ---
- name: Gruppe exlibris erstellen - name: Gruppe exlibris erstellen
group: ansible.builtin.group:
name: "{{ item.name }}" name: "{{ item.name }}"
gid: "{{ item.gid }}" gid: "{{ item.gid }}"
loop: "{{ vault_groups | flatten(levels=1) }}" loop: "{{ vault_groups | flatten(levels=1) }}"
- name: User in Gruppen einfügen und primäre Gruppe setzen - name: User in Gruppen einfügen und primäre Gruppe setzen
user: ansible.builtin.user:
name: "{{ item.name }}" name: "{{ item.name }}"
group: "{{ item.group }}" group: "{{ item.group }}"
groups: "{{ item.groups }}" groups: "{{ item.groups }}"
......
--- ---
- name: Install/Update required Debian base packages - name: Install/Update required Debian base packages
apt: ansible.builtin.apt:
state: present state: present
name: [ name: [
'logrotate', 'logrotate',
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
- name: configure Debian repositories - name: configure Debian repositories
block: block:
- name: öffentlichen Schlüssel hinzufügen (sonst muss bei jeder Installation eine Warnmeldung bestätigt werden) - name: öffentlichen Schlüssel hinzufügen (sonst muss bei jeder Installation eine Warnmeldung bestätigt werden)
apt_key: ansible.builtin.apt_key:
url: "{{ vault_debrepo_url }}deb-repository/pub.gpg.key" url: "{{ vault_debrepo_url }}deb-repository/pub.gpg.key"
state: present state: present
when: ansible_distribution_major_version == '11' when: ansible_distribution_major_version == '11'
tags: [apt, aptkey] tags: [apt, aptkey]
- name: SLUB-lokales Debian-Repository für Installation der SubApp in /etc/apt/sources.list.d/ eintragen - name: SLUB-lokales Debian-Repository für Installation der SubApp in /etc/apt/sources.list.d/ eintragen
apt_repository: ansible.builtin.apt_repository:
repo: "deb {{ vault_debrepo_url }}deb-repository bullseye main" repo: "deb {{ vault_debrepo_url }}deb-repository bullseye main"
state: present state: present
update_cache: "yes" update_cache: "yes"
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
when: "ansible_facts['distribution'] == 'Debian'" when: "ansible_facts['distribution'] == 'Debian'"
- name: cleanup legacy tools - name: cleanup legacy tools
file: ansible.builtin.file:
path: "{{ item }}" path: "{{ item }}"
state: absent state: absent
loop: loop:
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
notify: restart repairtools notify: restart repairtools
- name: install repairtool (package dependencies are encoded in the package) - name: install repairtool (package dependencies are encoded in the package)
apt: ansible.builtin.apt:
name: [ name: [
'{{ item.package_name }}={{ item.version }}', '{{ item.package_name }}={{ item.version }}',
] ]
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
tags: [apt] tags: [apt]
- name: configure tool version pinning to avoid automatic nightly upgrades - name: configure tool version pinning to avoid automatic nightly upgrades
template: ansible.builtin.template:
src: "etc/apt/preferences.d/pinning.j2" src: "etc/apt/preferences.d/pinning.j2"
dest: "/etc/apt/preferences.d/{{ item.package_name }}" dest: "/etc/apt/preferences.d/{{ item.package_name }}"
owner: "root" owner: "root"
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
patterns: '*.cfg' patterns: '*.cfg'
register: cit_configs register: cit_configs
- name: install checkit_tiff config - name: install checkit_tiff config
copy: ansible.builtin.copy:
src: "{{ item.path }}" src: "{{ item.path }}"
dest: "/usr/local/etc/" dest: "/usr/local/etc/"
remote_src: true remote_src: true
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
loop: "{{ cit_configs.files }}" loop: "{{ cit_configs.files }}"
- name: create caching directory - name: create caching directory
file: ansible.builtin.file:
state: directory state: directory
path: "{{ item }}" path: "{{ item }}"
owner: "{{ vault_service_user }}" owner: "{{ vault_service_user }}"
...@@ -77,13 +77,13 @@ ...@@ -77,13 +77,13 @@
- "/home/{{ vault_service_user }}/.config/repair/cfg/" - "/home/{{ vault_service_user }}/.config/repair/cfg/"
- name: Symlinks zu Binaries und Configs für checkit_tiff und fixit_tiff erstellen - name: Symlinks zu Binaries und Configs für checkit_tiff und fixit_tiff erstellen
file: ansible.builtin.file:
state: link state: link
src: "{{ item.src }}" src: "{{ item.src }}"
dest: "{{ item.dest }}" dest: "{{ item.dest }}"
owner: "{{ vault_service_user }}" owner: "{{ vault_service_user }}"
group: "{{ vault_service_user }}" group: "{{ vault_service_user }}"
with_items: loop:
- src: "/usr/bin/checkit_tiff_strict" - src: "/usr/bin/checkit_tiff_strict"
dest: "/home/{{ vault_service_user }}/.config/repair/bin/checkit_tiff" dest: "/home/{{ vault_service_user }}/.config/repair/bin/checkit_tiff"
- src: "/usr/bin/fixit_tiff" - src: "/usr/bin/fixit_tiff"
......
...@@ -10,22 +10,22 @@ ...@@ -10,22 +10,22 @@
### PAKETINSTALLATIONEN ### ### PAKETINSTALLATIONEN ###
- name: install packages - name: install packages
import_tasks: install-packages.yml ansible.builtin.import_tasks: "install-packages.yml"
tags: [apt, ci] tags: [apt, ci]
### USER IN GRUPPEN EINFUEGEN ### ### USER IN GRUPPEN EINFUEGEN ###
- name: create users and groups - name: create users and groups
import_tasks: create-users-groups.yml ansible.builtin.import_tasks: "create-users-groups.yml"
tags: [users, ci] tags: [users, ci]
### MOUNTPOINTS ANLEGEN, EINTRAGEN & MOUNTEN ### ### MOUNTPOINTS ANLEGEN, EINTRAGEN & MOUNTEN ###
- name: configure nfs mounts - name: configure nfs mounts
import_tasks: configure-nfs-mounts.yml ansible.builtin.import_tasks: "configure-nfs-mounts.yml"
tags: [nfs] tags: [nfs]
### INSTALLATION REPARATURTOOLS ### ### INSTALLATION REPARATURTOOLS ###
- name: install repairtools - name: install repairtools
import_tasks: install-repair-tools.yml ansible.builtin.import_tasks: "install-repair-tools.yml"
tags: [repairtools, ci] tags: [repairtools, ci]
- name: install validation tools - name: install validation tools
...@@ -34,5 +34,5 @@ ...@@ -34,5 +34,5 @@
### INSTALLATION SYSTEMD SERVICES ### INSTALLATION SYSTEMD SERVICES
- name: install SystemD-Services - name: install SystemD-Services
import_tasks: configure-systemd-services.yml ansible.builtin.import_tasks: "configure-systemd-services.yml"
tags: [systemd] tags: [systemd]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment