Use ansible collections
This commit is contained in:
parent
6ed0968e04
commit
6bfa1d276c
8 changed files with 22 additions and 8 deletions
|
@ -3,3 +3,7 @@ skip_list:
|
||||||
- 401
|
- 401
|
||||||
- 301
|
- 301
|
||||||
- 503
|
- 503
|
||||||
|
|
||||||
|
exclude_paths:
|
||||||
|
- galaxy_roles/
|
||||||
|
- galaxy_collections/
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
*.retry
|
*.retry
|
||||||
env/
|
env/
|
||||||
galaxy_roles/
|
galaxy_roles/
|
||||||
|
galaxy_collections/
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
collections:
|
||||||
|
- ansible.posix
|
||||||
|
- community.general
|
||||||
|
|
||||||
|
roles:
|
||||||
- src: kewlfft.aur
|
- src: kewlfft.aur
|
||||||
- src: geerlingguy.ntp
|
- src: geerlingguy.ntp
|
||||||
- src: realorangeone.reflector
|
- src: realorangeone.reflector
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
sudo env/bin/ansible-playbook dotfiles.yml
|
time sudo ansible-playbook dotfiles.yml
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue