Merge pull request 'yamllint config and fixes' (#1) from dkdent/netz39-infra-ansible:yamllint into master
This commit is contained in:
commit
cbbf5b723b
8 changed files with 40 additions and 28 deletions
10
.yamllint
Normal file
10
.yamllint
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
truthy:
|
||||
allowed-values:
|
||||
- 'true'
|
||||
- 'false'
|
||||
- 'yes'
|
||||
- 'no'
|
6
main.yml
6
main.yml
|
@ -25,10 +25,10 @@
|
|||
name: ansible-role-unattended-upgrades
|
||||
vars:
|
||||
unattended_origins_patterns:
|
||||
- 'origin=Debian,archive=buster-security'
|
||||
- 'o=Debian,a=buster-updates'
|
||||
- "origin=Debian,archive=buster-security"
|
||||
- "o=Debian,a=buster-updates"
|
||||
unattended_package_blacklist: [cowsay]
|
||||
unattended_mail: 'root'
|
||||
unattended_mail: "root"
|
||||
|
||||
- name: Setup users
|
||||
include_role:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
- hosts: pottwal.n39.eu
|
||||
become: true
|
||||
|
||||
|
@ -101,8 +102,7 @@
|
|||
- "{{ openhab_data }}/userdata:/openhab/userdata:rw"
|
||||
keep_volumes: yes
|
||||
restart_policy: unless-stopped
|
||||
env:
|
||||
EXTRA_JAVA_OPTS="-Duser.timezone=Europe/Berlin"
|
||||
env: EXTRA_JAVA_OPTS="-Duser.timezone=Europe/Berlin"
|
||||
|
||||
- name: Setup proxy site openhab.n39.eu
|
||||
include_role:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
- src: git+https://github.com/jnv/ansible-role-unattended-upgrades.git
|
||||
version: v1.9.0
|
||||
- src: git+https://github.com/adriagalin/ansible.timezone.git
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
docker_compose_version: "1.25.4"
|
||||
docker_compose_path: /usr/local/bin/docker-compose
|
||||
docker_data_root: "/var/lib/docker"
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
repo: deb https://download.docker.com/linux/debian buster stable
|
||||
state: present
|
||||
update_cache: true
|
||||
filename: 'docker'
|
||||
filename: "docker"
|
||||
|
||||
- name: install Docker
|
||||
package:
|
||||
|
@ -73,7 +73,7 @@
|
|||
- name: Place admin users in docker group
|
||||
user:
|
||||
name: "{{ item.logname }}"
|
||||
groups: docker
|
||||
groups: [docker]
|
||||
append: yes
|
||||
when: item.docker
|
||||
with_items: "{{ users }}"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
|
||||
- name: Ensure sudo is installed
|
||||
package:
|
||||
name:
|
||||
|
@ -11,7 +10,7 @@
|
|||
path: /etc/sudoers
|
||||
state: present
|
||||
regexp: '^%sudo\s'
|
||||
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
|
||||
line: "%sudo ALL=(ALL) NOPASSWD: ALL"
|
||||
validate: /usr/sbin/visudo -cf %s
|
||||
|
||||
- name: Add users | create users' shell and home dir
|
||||
|
@ -30,12 +29,12 @@
|
|||
with_subelements:
|
||||
- "{{ users }}"
|
||||
- ssh_pub
|
||||
- skip_missing: True
|
||||
- skip_missing: true
|
||||
|
||||
- name: Place user in sudo group
|
||||
user:
|
||||
name: "{{ item.logname }}"
|
||||
groups: sudo
|
||||
groups: [sudo]
|
||||
append: yes
|
||||
when: item.sudo
|
||||
with_items: "{{ users }}"
|
||||
|
|
1
tau.yml
1
tau.yml
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
- hosts: tau.netz39.de
|
||||
become: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue