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