imfreedom/ansible

make the common role yamllint clean

2021-11-22, Gary Kramlich
889fec659a78
Parents d1d36c46bb35
Children d746793b4fa2
make the common role yamllint clean
--- a/roles/common/defaults/main.yaml Mon Nov 22 04:06:06 2021 -0600
+++ b/roles/common/defaults/main.yaml Mon Nov 22 04:12:02 2021 -0600
@@ -1,1 +1,2 @@
+---
common_sha512_crypt_rounds: 656000
--- a/roles/common/handlers/main.yaml Mon Nov 22 04:06:06 2021 -0600
+++ b/roles/common/handlers/main.yaml Mon Nov 22 04:12:02 2021 -0600
@@ -1,3 +1,4 @@
+---
- name: restart fail2ban
systemd:
name: fail2ban
--- a/roles/common/meta/main.yaml Mon Nov 22 04:06:06 2021 -0600
+++ b/roles/common/meta/main.yaml Mon Nov 22 04:12:02 2021 -0600
@@ -1,3 +1,4 @@
+---
dependencies:
# These need to be first and in this order:
- sources
--- a/roles/common/tasks/common.yaml Mon Nov 22 04:06:06 2021 -0600
+++ b/roles/common/tasks/common.yaml Mon Nov 22 04:12:02 2021 -0600
@@ -1,3 +1,4 @@
+---
- name: set password hashing rounds
replace:
path: /etc/pam.d/common-password
@@ -18,7 +19,7 @@
user: root
path: "/root/.ssh/authorized_keys"
key: "{{ common_root_ssh_keys }}"
- exclusive: yes
+ exclusive: "yes"
tags:
- ssh
- ssh_key
@@ -56,7 +57,7 @@
- name: enable fail2ban service
systemd:
name: fail2ban
- enabled: yes
+ enabled: "yes"
notify:
- restart fail2ban
tags:
--- a/roles/common/tasks/main.yaml Mon Nov 22 04:06:06 2021 -0600
+++ b/roles/common/tasks/main.yaml Mon Nov 22 04:12:02 2021 -0600
@@ -1,3 +1,4 @@
+---
- include_tasks: software.yaml
args:
apply:
--- a/roles/common/tasks/software.yaml Mon Nov 22 04:06:06 2021 -0600
+++ b/roles/common/tasks/software.yaml Mon Nov 22 04:12:02 2021 -0600
@@ -1,9 +1,10 @@
+---
- name: install software
apt:
name: "{{ common_packages }}"
state: present
cache_valid_time: 3600
- force_apt_get: yes
+ force_apt_get: "yes"
vars:
common_packages:
- fail2ban