Skip to content

Commit

Permalink
chore: ansible-lint upgrade tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoss committed Jan 9, 2024
1 parent cdbbb88 commit 8f2464f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
args:
chdir: "{{ netbox_current_path }}/netbox"
executable: /bin/bash
become: yes
become_method: sudo
become: true
become_method: ansible.builtin.sudo
become_user: "{{ netbox_user }}"
listen: restart_netbox
register: config_check
Expand All @@ -17,7 +17,7 @@
ansible.builtin.service:
name: "{{ item }}"
state: restarted
become: yes
become: true
listen: restart_netbox
loop:
- netbox
Expand Down
4 changes: 2 additions & 2 deletions tasks/superusers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
args:
chdir: "{{ netbox_current_path }}/netbox"
executable: /bin/bash
become: yes
become_method: sudo
become: true
become_method: ansible.builtin.sudo
become_user: "{{ netbox_user }}"
register: result
loop: "{{ netbox_superusers }}"
Expand Down
2 changes: 1 addition & 1 deletion tasks/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
environment:
PYTHON: "python{{ python_version | default(__python_version) }}"
become: true
become_method: sudo
become_method: ansible.builtin.sudo
become_user: "{{ netbox_user }}"
notify: restart_netbox
# task vs handler to trigger at specific point in run
Expand Down

0 comments on commit 8f2464f

Please sign in to comment.