We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c88bc87 commit 8c1d928Copy full SHA for 8c1d928
1 file changed
ansible/playbooks/registration.yaml
@@ -4,6 +4,7 @@
4
remote_user: cloudadmin
5
become: true
6
become_user: root
7
+ gather_facts: false
8
environment:
9
ZYPP_LOCK_TIMEOUT: '120'
10
@@ -13,6 +14,20 @@
13
14
tasks:
15
16
# Pre flight checks
17
+ - name: Wait until passwordless sudo works in GCP
18
+ become: false # This task is to check sudo is ready
19
+ ansible.builtin.command: sudo -n true
20
+ register: sudo_test
21
+ retries: 30
22
+ delay: 5
23
+ until: sudo_test.rc == 0
24
+ changed_when: false
25
+ failed_when: sudo_test.rc != 0
26
+
27
+ - name: Gather facts (manually, after sudo is ready)
28
+ ansible.builtin.setup:
29
30
31
- name: Check for instance-flavor-check presence
32
ansible.builtin.command: which instance-flavor-check
33
register: ifc_bin
0 commit comments