Use ansible collections

This commit is contained in:
Jake Howard 2021-02-07 13:56:58 +00:00
parent 6ed0968e04
commit 6bfa1d276c
Signed by: jake
GPG key ID: 57AFB45680EDD477
8 changed files with 22 additions and 8 deletions

View file

@ -3,3 +3,7 @@ skip_list:
- 401
- 301
- 503
exclude_paths:
- galaxy_roles/
- galaxy_collections/

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
*.retry
env/
galaxy_roles/
galaxy_collections/

View file

@ -3,6 +3,7 @@ nocows = 1
host_key_checking = False
retry_files_enabled = False
roles_path = ./galaxy_roles:./roles
collections_path = ./galaxy_collections
inventory = ./hosts
become_ask_pass = True
interpreter_python = /usr/bin/python3

View file

@ -1,3 +1,8 @@
- src: kewlfft.aur
- src: geerlingguy.ntp
- src: realorangeone.reflector
collections:
- ansible.posix
- community.general
roles:
- src: kewlfft.aur
- src: geerlingguy.ntp
- src: realorangeone.reflector

View file

@ -2,4 +2,4 @@
set -ex
sudo env/bin/ansible-playbook dotfiles.yml
time sudo ansible-playbook dotfiles.yml

View file

@ -8,6 +8,6 @@ set -x
yamllint -sc yamllint.yml yamllint.yml dotfiles.yml tasks/ vars.yml
ansible-lint dotfiles.yml -p -c .ansible-lint --exclude galaxy_roles/
ansible-lint dotfiles.yml -p -c .ansible-lint
ansible-playbook dotfiles.yml --syntax-check

View file

@ -18,7 +18,6 @@
path: "{{ home }}/.ssh"
owner: "{{ user }}"
mode: 0700
directory_mode: 0700
- name: Install assh config
copy:
@ -53,7 +52,7 @@
register: firewall_ports
- name: Open firewall ports
firewalld:
ansible.posix.firewalld:
port: "{{ item }}"
permanent: true
immediate: true
@ -61,7 +60,7 @@
loop: "{{ requested_firewall_ports }}"
- name: Close firewall ports
firewalld:
ansible.posix.firewalld:
port: "{{ item }}"
permanent: true
immediate: true

View file

@ -8,3 +8,7 @@ rules:
required: only-when-needed
line-length:
max: 150
ignore: |
galaxy_roles
galaxy_collections