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 - 401
- 301 - 301
- 503 - 503
exclude_paths:
- galaxy_roles/
- galaxy_collections/

1
.gitignore vendored
View File

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

View File

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

View File

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

View File

@ -2,4 +2,4 @@
set -ex 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 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 ansible-playbook dotfiles.yml --syntax-check

View File

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

View File

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