Skip to content

Commit

Permalink
Fix some Ansible lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mpagot committed Dec 19, 2024
1 parent c840588 commit 1ae4fde
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ansible/playbooks/registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
- name: Check for 'Not Registered'
ansible.builtin.set_fact:
not_registered_found: "{{ 'Not Registered' in repos.stdout }}"
ignore_errors: true

# Is registercloudguest available?
# only run it if:
Expand All @@ -51,7 +50,7 @@

- name: Softfail for old cloud-regionsrv-client in 15sp2
ansible.builtin.debug:
msg:
msg:
- "[OSADO][softfail] bsc#1217583 IPv6 handling during registration"
- "use_suseconnect: {{ use_suseconnect }}"
when:
Expand Down Expand Up @@ -100,6 +99,7 @@
retries: 10
delay: 60
failed_when: result.rc != 0 or result.stderr != ""
changed_when: result.rc == 0
when:
- not_registered_found
- is_registercloudguest_bin.rc == 0
Expand All @@ -112,6 +112,7 @@
- name: SUSEConnect registration
ansible.builtin.command: SUSEConnect -r "{{ reg_code }}" -e "{{ email_address }}"
register: result
changed_when: result.rc == 0
until: result is succeeded
retries: 10
delay: 60
Expand All @@ -124,6 +125,7 @@
- name: Add SLES 12 Advanced Systems Modules
ansible.builtin.command: SUSEConnect -p sle-module-adv-systems-management/12/{{ ansible_facts['architecture'] }} -r "{{ reg_code }}"
register: result
changed_when: result.rc == 0
until: result is succeeded
retries: 10
delay: 60
Expand All @@ -133,6 +135,7 @@
- name: Add SLES 12 public cloud module
ansible.builtin.command: SUSEConnect -p sle-module-public-cloud/12/{{ ansible_facts['architecture'] }}
register: result
changed_when: result.rc == 0
until: result is succeeded
retries: 10
delay: 60
Expand All @@ -144,6 +147,7 @@
- name: Add SLES 15 public cloud module
ansible.builtin.command: SUSEConnect -p sle-module-public-cloud/{{ ansible_facts['distribution_version'] }}/{{ ansible_facts['architecture'] }}
register: result
changed_when: result.rc == 0
until: result is succeeded
retries: 10
delay: 60
Expand All @@ -165,6 +169,7 @@
- name: Add additional authenticated modules [SUSEConnnect]
ansible.builtin.command: SUSEConnect -p {{ item.key }} -r {{ item.value }}
register: result
changed_when: result.rc == 0
until: result is succeeded
retries: 10
delay: 60
Expand All @@ -178,6 +183,7 @@
- name: Add additional authenticated modules [registercloudguest]
ansible.builtin.command: registercloudguest -r {{ item.value }}
register: result
changed_when: result.rc == 0
until: result is succeeded
retries: 10
delay: 60
Expand Down

0 comments on commit 1ae4fde

Please sign in to comment.