-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from redhat-cop/ericzolf-add-setuplog-fix-aap-…
…4555 Add AAP-4555 setup.log fix to aap_setup_install
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
# Fix for https://issues.redhat.com/browse/AAP-4555 - it'll move away the | ||
# setup.log before starting the installation | ||
|
||
- name: AAP_4555 | check if setup.log does exist | ||
ansible.builtin.stat: | ||
path: "{{ aap_setup_inst_setup_dir }}/setup.log" | ||
register: __aap_setup_inst_log | ||
|
||
- name: AAP_4555 | create a backup of setup.log if it exists | ||
ansible.builtin.copy: | ||
src: /dev/null | ||
dest: "{{ aap_setup_inst_setup_dir }}/setup.log" | ||
backup: true # we use the backup feature of copy to save setup.log | ||
remote_src: true | ||
mode: 0664 | ||
when: __aap_setup_inst_log.stat.exists | ||
|
||
- name: AAP_4555 | make sure setup.log doesn't exist | ||
ansible.builtin.file: | ||
path: "{{ aap_setup_inst_setup_dir }}/setup.log" | ||
state: absent | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters