[TIDY] yaml auto-format

This commit is contained in:
Jannik Beyerstedt 2019-11-12 21:34:35 +01:00
parent 04686de59c
commit e6db3ccc06
11 changed files with 18 additions and 21 deletions

View file

@ -37,6 +37,10 @@ Mandatory variable:
Mandatory variable: Mandatory variable:
- `cron_email`: Sender email address used by cron - `cron_email`: Sender email address used by cron
### Docker
Optional variable:
- `dockercompose_use_pip`: boolean to use pip instead of manual download (default: false)
### DynDNS ### DynDNS
This task and it's configuration files might be quite specific for the [davd/docker-ddns](https://github.com/dprandzioch/docker-ddns) docker container. This task and it's configuration files might be quite specific for the [davd/docker-ddns](https://github.com/dprandzioch/docker-ddns) docker container.

View file

@ -6,7 +6,6 @@
name: ssh name: ssh
state: restarted state: restarted
- name: Enable telegraf - name: Enable telegraf
service: service:
name: telegraf name: telegraf
@ -23,7 +22,6 @@
state: restarted state: restarted
enabled: yes enabled: yes
- name: Enable caddy - name: Enable caddy
service: service:
name: caddy name: caddy

View file

@ -7,14 +7,16 @@ galaxy_info:
min_ansible_version: 2.4 min_ansible_version: 2.4
platforms: platforms:
- name: Debian - name: Debian
versions: versions:
- all - all
galaxy_tags: [] galaxy_tags:
[]
# List tags for your role here, one per line. # List tags for your role here, one per line.
# Be sure to remove the '[]' above, if you add tags to this list. # Be sure to remove the '[]' above, if you add tags to this list.
dependencies: [] dependencies:
[]
# List your role dependencies here, one per line. # List your role dependencies here, one per line.
# Be sure to remove the '[]' above, if you add tags to this list. # Be sure to remove the '[]' above, if you add tags to this list.

View file

@ -12,7 +12,6 @@
- "borgbackup-{{ ansible_distribution }}.yml" - "borgbackup-{{ ansible_distribution }}.yml"
- "borgbackup-{{ ansible_os_family }}.yml" - "borgbackup-{{ ansible_os_family }}.yml"
# copy backup script and enable cronjob # copy backup script and enable cronjob
- name: borgbackup - Copy Borgbackup script - name: borgbackup - Copy Borgbackup script
become: yes become: yes

View file

@ -6,7 +6,6 @@
shell: lsb_release -is shell: lsb_release -is
register: lsb_id register: lsb_id
- name: caddyserver - Stop caddy - name: caddyserver - Stop caddy
become: yes become: yes
service: service:

View file

@ -37,7 +37,6 @@
group: root group: root
mode: 0644 mode: 0644
- name: caddyserver - Add standard user to www-data group - name: caddyserver - Add standard user to www-data group
become: yes become: yes
user: user:

View file

@ -9,11 +9,13 @@
state: present state: present
vars: vars:
packages: packages:
- exim4 - exim4
- mailutils - mailutils
- name: cronmails - Create exim4 config folder - name: cronmails - Create exim4 config folder
become: yes become: yes
file: path=/etc/exim4 state=directory file:
path: /etc/exim4
state: directory
- name: cronmails - Copy exim4 config template - name: cronmails - Copy exim4 config template
become: yes become: yes
copy: copy:

View file

@ -10,7 +10,6 @@
- "docker-{{ ansible_distribution }}.yml" - "docker-{{ ansible_distribution }}.yml"
- "docker-{{ ansible_os_family }}.yml" - "docker-{{ ansible_os_family }}.yml"
# Other setup tasks # Other setup tasks
- name: docker - Add standard user to docker group - name: docker - Add standard user to docker group
become: yes become: yes

View file

@ -9,4 +9,4 @@
dest: "/etc/ssh/sshd_config" dest: "/etc/ssh/sshd_config"
backup: yes backup: yes
notify: notify:
- Restart sshd - Restart sshd

View file

@ -1,8 +1,5 @@
--- ---
# Server/Telegraf: Install and Setup Telegraf Monitoring # Server/Telegraf: Install and Setup Telegraf Monitoring
# Variables:
# - telegraf_snmp: boolean, enable SNMP monitoring for the fra80 network
# - telegraf_docker: boolean, enable docker monitoring
- name: telegraf - Install apt-transport-https - name: telegraf - Install apt-transport-https
become: yes become: yes
@ -33,4 +30,4 @@
src: "{{ role_path }}/templates/telegraf.conf" src: "{{ role_path }}/templates/telegraf.conf"
dest: /etc/telegraf/telegraf.conf dest: /etc/telegraf/telegraf.conf
notify: notify:
- Enable and restart telegraf - Enable and restart telegraf

View file

@ -1,2 +0,0 @@
---
# vars file for server