Skip to content
Snippets Groups Projects
Commit 41602db2 authored by Lars Beckers's avatar Lars Beckers
Browse files

update to latest ansible guidelines

parent 2a2be31b
Branches
No related tags found
No related merge requests found
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
- usv - usv
- name: gather apcupsd killpower files - name: gather apcupsd killpower files
local_action: stat path=apcupsd/killpower/{{ ansible_hostname }} stat:
path: "apcupsd/killpower/{{ ansible_hostname }}"
delegate_to: localhost
register: killpower register: killpower
tags: tags:
- usv - usv
...@@ -40,7 +42,9 @@ ...@@ -40,7 +42,9 @@
- usv - usv
- name: gather apcupsd onbattery files - name: gather apcupsd onbattery files
local_action: stat path=apcupsd/onbattery/{{ ansible_hostname }} stat:
path: "apcupsd/onbattery/{{ ansible_hostname }}"
delegate_to: localhost
register: onbattery register: onbattery
tags: tags:
- usv - usv
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
mode: '0644' mode: '0644'
when: when:
- branding_motd is defined - branding_motd is defined
- branding_motd != "" - branding_motd|bool
tags: tags:
- branding - branding
- shell - shell
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
mode: '0644' mode: '0644'
when: when:
- branding_issuenet is defined - branding_issuenet is defined
- branding_issuenet != "" - branding_issuenet|bool
tags: tags:
- branding - branding
- shell - shell
...@@ -67,7 +67,9 @@ ...@@ -67,7 +67,9 @@
- tls - tls
- name: install gpg to install the apt_key - name: install gpg to install the apt_key
apt: name=gnupg state=present apt:
name: gnupg
state: present
tags: tags:
- branding - branding
- repos - repos
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
name: name:
- cups-client - cups-client
- cups-bsd - cups-bsd
state: latest state: present
tags: tags:
- cups-client - cups-client
......
---
- name: check sudoers
command: visudo -q -c -f /etc/sudoers
--- ---
# file: roles/custom-sudoers/tasks/main.yml
- name: ensure deployment of customized sudoers - name: ensure deployment of customized sudoers
template: template:
...@@ -8,10 +7,7 @@ ...@@ -8,10 +7,7 @@
owner: root owner: root
group: root group: root
mode: '0440' mode: '0440'
tags: notify:
- sudo - check sudoers
- name: check whole sudo config
command: visudo -q -c -f /etc/sudoers
tags: tags:
- sudo - sudo
...@@ -31,22 +31,15 @@ ...@@ -31,22 +31,15 @@
- debian-updates - debian-updates
# https://github.com/ansible/ansible/issues/27699 # https://github.com/ansible/ansible/issues/27699
- name: ensure git module is able to clone # https://github.com/ansible/ansible/issues/30064#issuecomment-487149251
command: mount -o remount,exec /tmp
tags:
- debian-updates
- name: ensure git is at the current revision - name: ensure git is at the current revision
git: git:
repo: git@git.fsmpi.rwth-aachen.de:larsb/debian-updates.git repo: git@git.fsmpi.rwth-aachen.de:larsb/debian-updates.git
dest: /opt/debian-updates dest: /opt/debian-updates
key_file: /root/.ssh/debian_updates key_file: /root/.ssh/debian_updates
version: HEAD version: HEAD
tags: environment:
- debian-updates TMPDIR: /root/.ansible/tmp
- name: ensure git module is not able to clone anymore
command: mount -o remount,noexec /tmp
tags: tags:
- debian-updates - debian-updates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment