Skip to content

Commit

Permalink
Lint all the things.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Jan 7, 2025
1 parent 00f3292 commit b160be9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .ansible-lint
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
# https://ansible-lint.readthedocs.io/en/latest/default_rules/
exclude_paths:
- galaxy_roles/
- roles/andrewrothstein.*
- roles/bbaassssiiee.*
- roles/geerlingguy.*
- .github/

skip_list:
Expand Down
4 changes: 2 additions & 2 deletions roles/api/tasks/credentials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
register: "ssh_key_inventory"
failed_when: false

- name: "Key Store - {{ inventory_user}}-ssh-key"
- name: "Key Store - ssh key for {{ inventory_user }}"
changed_when: "semaphore_key_inventory_created.status == 204"
ansible.builtin.uri:
use_proxy: false
Expand All @@ -109,7 +109,7 @@
body: >-
{
"project_id": {{ semaphore_project_id | int }},
"name": "{{ inventory_user}}-ssh-key",
"name": "{{ inventory_user }}-ssh-key",
"type": "ssh",
"login": "{{ inventory_user }}",
"ssh":
Expand Down
4 changes: 2 additions & 2 deletions roles/api/tasks/present.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
- name: Credentials
ansible.builtin.include_tasks: credentials.yml

#- name: Repositories
# ansible.builtin.include_tasks: repositories.yml
# - name: Repositories
# ansible.builtin.include_tasks: repositories.yml
2 changes: 0 additions & 2 deletions roles/api/tasks/repositories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
status_code: 204
timeout: 5
register: semaphore_repository_created
# when:
# (semaphore_repositories.json | length == 0) or ("semaphore_repositories.json | selectattr('name', 'equalto', controller_repository_name) | length == 0")

- name: "Determine Repositories (after creation)"
changed_when: false
Expand Down
2 changes: 2 additions & 0 deletions roles/semaphore/tasks/present.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

- name: Set semaphore_download_url
ansible.builtin.set_fact:
# yamllint disable-line rule:line-length
semaphore_download_url: "{{ semaphore_releases_url }}/{{ _sem_rel.json.name }}/semaphore_{{ semaphore_version }}_linux_{{ semaphore_pkg_arch }}.{{ semaphore_pkg_ext }}"

- name: Install Semaphore package
Expand Down Expand Up @@ -112,6 +113,7 @@
- /home/semaphore/tmp

- name: Create python3.12 venv
become: true
become_user: semaphore
ansible.builtin.command: /usr/bin/python3.12 -m venv venv --upgrade-deps
args:
Expand Down

0 comments on commit b160be9

Please sign in to comment.