added format task

pull/20/head
Cian Hatton 3 years ago
parent 4f3e9b552c
commit 37efcd16c9

@ -0,0 +1,9 @@
skip_list:
- yaml[indentation]
# TODO I probably want these to be correct
- meta-no-info
- meta-incorrect
- schema
- fqcn-builtins
- schema

@ -25,3 +25,16 @@ jobs:
- name: Test Directory
run: ansible-lint ${{ matrix.directory }}
format:
runs-on: ubuntu-latest
steps:
- name: Checkout the codebase
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8.9
- name: Install dependencies
run: make deps
- name: Format code
run: make format

@ -8,7 +8,7 @@ bootstrap:
qnap:
ansible-playbook playbooks/setup-homelab.yml --limit qnap
homelab:
homelab: bootstrap
ansible-playbook playbooks/setup-homelab.yml
verify:

@ -15,7 +15,7 @@
- lsb-release
- pip
state: present
update_cache: yes
update_cache: true
- name: Add Docker GPG apt Key
apt_key:
@ -36,7 +36,7 @@
- containerd.io
- docker-compose-plugin
state: present
update_cache: yes
update_cache: true
- name: Install Docker Module for Python
pip:

@ -1,10 +1,10 @@
# handlers file for setup_hosted_services
- name: restart-dashy
shell: docker restart dashy
command: docker restart dashy
ignore_errors: true
- name: restart-olivetin
shell: docker restart olivetin
command: docker restart olivetin
- name: restart-docker-volume-backup
shell: docker restart docker-volume-backup
command: docker restart docker-volume-backup

@ -3,7 +3,7 @@
name:
- samba
state: present
update_cache: yes
update_cache: true
- name: Ensure samba group exists
ansible.builtin.group:
@ -27,13 +27,13 @@
user:
name: '{{ item.name }}'
groups: '{{ samba_group }}'
append: yes
append: true
with_items: '{{users}}'
- name: Ensure Share directories
ansible.builtin.file:
path: '{{item}}'
recurse: yes
recurse: true
state: directory
owner: '{{samba_user}}'
group: '{{samba_group}}'

@ -23,6 +23,7 @@
template:
src: sudoers.j2
dest: /etc/sudoers.d/{{item.name}}
mode: 0440
with_items: '{{ users }}'
when: item.passwordless_sudo == true

Loading…
Cancel
Save