Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
supplemental
Commits
41602db2
Commit
41602db2
authored
Sep 11, 2019
by
Lars Beckers
Browse files
update to latest ansible guidelines
parent
2a2be31b
Changes
6
Hide whitespace changes
Inline
Side-by-side
apcupsd/tasks/main.yml
View file @
41602db2
...
...
@@ -23,7 +23,9 @@
-
usv
-
name
:
gather apcupsd killpower files
local_action
:
stat path=apcupsd/killpower/{{ ansible_hostname }}
stat
:
path
:
"
apcupsd/killpower/{{
ansible_hostname
}}"
delegate_to
:
localhost
register
:
killpower
tags
:
-
usv
...
...
@@ -40,7 +42,9 @@
-
usv
-
name
:
gather apcupsd onbattery files
local_action
:
stat path=apcupsd/onbattery/{{ ansible_hostname }}
stat
:
path
:
"
apcupsd/onbattery/{{
ansible_hostname
}}"
delegate_to
:
localhost
register
:
onbattery
tags
:
-
usv
...
...
branding/tasks/main.yml
View file @
41602db2
...
...
@@ -10,7 +10,7 @@
mode
:
'
0644'
when
:
-
branding_motd is defined
-
branding_motd
!= ""
-
branding_motd
|bool
tags
:
-
branding
-
shell
...
...
@@ -24,7 +24,7 @@
mode
:
'
0644'
when
:
-
branding_issuenet is defined
-
branding_issuenet
!= ""
-
branding_issuenet
|bool
tags
:
-
branding
-
shell
...
...
@@ -67,7 +67,9 @@
-
tls
-
name
:
install gpg to install the apt_key
apt
:
name=gnupg state=present
apt
:
name
:
gnupg
state
:
present
tags
:
-
branding
-
repos
...
...
cups-client/tasks/main.yml
View file @
41602db2
...
...
@@ -6,7 +6,7 @@
name
:
-
cups-client
-
cups-bsd
state
:
lates
t
state
:
presen
t
tags
:
-
cups-client
...
...
custom-sudoers/handlers/main.yml
0 → 100644
View file @
41602db2
---
-
name
:
check sudoers
command
:
visudo -q -c -f /etc/sudoers
custom-sudoers/tasks/main.yml
View file @
41602db2
---
# file: roles/custom-sudoers/tasks/main.yml
-
name
:
ensure deployment of customized sudoers
template
:
...
...
@@ -8,10 +7,7 @@
owner
:
root
group
:
root
mode
:
'
0440'
tags
:
-
sudo
-
name
:
check whole sudo config
command
:
visudo -q -c -f /etc/sudoers
notify
:
-
check sudoers
tags
:
-
sudo
debian-updates/tasks/main.yml
View file @
41602db2
...
...
@@ -31,22 +31,15 @@
-
debian-updates
# https://github.com/ansible/ansible/issues/27699
-
name
:
ensure git module is able to clone
command
:
mount -o remount,exec /tmp
tags
:
-
debian-updates
# https://github.com/ansible/ansible/issues/30064#issuecomment-487149251
-
name
:
ensure git is at the current revision
git
:
repo
:
git@git.fsmpi.rwth-aachen.de:larsb/debian-updates.git
dest
:
/opt/debian-updates
key_file
:
/root/.ssh/debian_updates
version
:
HEAD
tags
:
-
debian-updates
-
name
:
ensure git module is not able to clone anymore
command
:
mount -o remount,noexec /tmp
environment
:
TMPDIR
:
/root/.ansible/tmp
tags
:
-
debian-updates
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment