Skip to content

Commit

Permalink
adjust travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tcharl committed May 2, 2023
1 parent e2565f2 commit e10b066
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions molecule/kvm/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,25 @@
chdir: /home/vagrant
creates: /home/vagrant/myvm.log

- name: Wait until the string "auth" is in the vagrant log
ansible.builtin.wait_for:
path: /home/vagrant/myvmerr.log
search_regex: SSH\sis\sready
timeout: 1800
- name: Wait until the string "Time for SSH ready" is in the vagrant log
block:
- name: Wait until the string "auth" is in the vagrant log
ansible.builtin.wait_for:
path: /home/vagrant/myvmerr.log
search_regex: SSH\sis\sready
timeout: 1800
always:
- name: cat error log
ansible.builtin.slurp:
src: /home/vagrant/myvmerr.log
register: error_log
- name: print
ansible.builtin.debug:
msg: "{{ error_log['content'] | b64decode }}"
- name: cat info log
ansible.builtin.slurp:
src: /home/vagrant/myvm.log
register: info_log
- name: print
ansible.builtin.debug:
msg: "{{ info_log['content'] | b64decode }}"

0 comments on commit e10b066

Please sign in to comment.