Removing all ansible-linter errors
Ansible Linting / build (push) Failing after 16s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 18s
Wiki Resources Sanity Checks / ruff-checks (push) Successful in 7s

This commit is contained in:
shockrah committed 2026-04-26 01:35:56 -07:00
1 parent c44babf3d8
commit fbe6e5c3e2
15 files changed
+33 -30

No files matched your search

@@ -8,8 +8,8 @@
- name: Running install on the keyrings directory
ansible.builtin.command:
cmd: install -m 0755 -d /etc/apt/keyrings
register: install
changed_when: install.rc == 0
register: base_install_keyrings
changed_when: base_install_keyrings.rc == 0
- name: Fetch Docker GPG Key
vars:
keylink: https://download.docker.com/linux/ubuntu/gpg
@@ -37,5 +37,5 @@
- name: Verify that the docker components are installed properly
ansible.builtin.command:
cmd: docker run hello-world
register: docker
changed_when: docker.rc == 0
register: base_docker_hello
changed_when: base_docker_hello.rc == 0
+2
View File
@@ -6,3 +6,5 @@
- name: Run installation script
ansible.builtin.command:
cmd: bash /tmp/k3s.sh
register: base_k3s_install_script
changed_when: base_k3_install_script.rc == 0
-8
View File
@@ -15,11 +15,3 @@
become: true
tags:
- setup
- name: Run through nomad removal steps
tags: nomad
ansible.builtin.include_tasks:
file: nomad.yaml
apply:
become: true
tags:
- nomad
+6 -3
View File
@@ -2,10 +2,13 @@
ansible.builtin.get_url:
url: https://get.k3s.io
dest: /tmp
register: install_script
mode: "0644"
register: k3s_dl_install_script
- name: Run installation script
become: true
environment:
INSTALL_K3S_EXEC: server
INSTALL_K3S_EXEC: server
ansible.builtin.command:
cmd: sh {{ install_script.dest }}
cmd: sh {{ k3s_dl_install_script.dest }}
register: k3s_install_script
changed_when: k3s_install_script.rc == 0
+4 -4
View File
@@ -1,18 +1,18 @@
- name: Nomad server configuration
become: true
become: true
block:
- name: Ensure the root data directory is present
ansible.builtin.file:
path: "{{ nomad.volumes.root }}"
path: "{{ nomad_data.volumes.root }}"
state: absent
mode: "0755"
- name: Ensure registry volume is present
ansible.builtin.file:
path: "{{ nomad.volumes.registry }}"
path: "{{ nomad_data.volumes.registry }}"
state: absent
mode: "0755"
- name: Ensure the MinIO diretory is present
ansible.builtin.file:
path: "{{ nomad.volumes.nfs }}"
path: "{{ nomad_data.volumes.nfs }}"
state: absent
mode: "0755"
+1 -1
View File
@@ -1,4 +1,4 @@
nomad:
nomad_data:
volumes:
root: /opt/volumes
registry: /opt/volumes/ncr
+1 -1
View File
@@ -1,4 +1,4 @@
- name: Restart host to apply any changes and clear out uptime stuff
become: true
ansible.builtin.reboot:
msg: "Reboot initiated as a part of housekeeping"
msg: "Reboot initiated as a part of housekeeping"
+6 -2
View File
@@ -2,12 +2,16 @@
become: true
ansible.builtin.command:
cmd: docker compose pull
chdir: "{{ webadmin.home }}/{{ item }}"
chdir: "{{ webserver_admin.home }}/{{ item }}"
loop:
- services
register: webserver_docker_pull
changed_when: webserver_docker_pull.rc == 0
- name: Restart containers with newest container images
ansible.builtin.command:
cmd: docker compose up -d
chdir: "{{ webadmin.home }}/{{ item }}"
chdir: "{{ webserver_admin.home }}/{{ item }}"
loop:
- services
register: webserver_docker_restart
changed_when: webserver_docker_restart.rc == 0
+2 -2
View File
@@ -4,5 +4,5 @@
ansible.builtin.apt:
update_cache: true
autoclean: true
autoremove: true
upgrade: safe
autoremove: true
upgrade: safe
+2 -2
View File
@@ -1,2 +1,2 @@
webadmin:
home: /home/webadmin
webserver_admin:
home: /home/webadmin