Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #56 from berndfinger/master
Browse files Browse the repository at this point in the history
fix issues #28 and #55
  • Loading branch information
berndfinger authored May 25, 2020
2 parents db43296 + da801af commit 7c1d73b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,23 @@
dest: /usr/lib64/liblber.so.199
state: link

- name: Copy file /etc/tmpfiles.d/sap.conf
- name: Test if file /usr/lib/tmpfiles.d/sap.conf exists
stat:
path: /usr/lib/tmpfiles.d/sap.conf
register: systemd_sap_conf
failed_when: no

- debug:
var: systemd_sap_conf.stat.exists

- name: Copy file /etc/tmpfiles.d/sap.conf if necessary
copy:
src: etc/tmpfiles.d/sap.conf
dest: /etc/tmpfiles.d/sap.conf
owner: root
group: root
mode: '0644'
backup: yes
when: not systemd_sap_conf.stat.exists

...
8 changes: 0 additions & 8 deletions tasks/sapnote/2772999/04-configure-network-time-and-date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,4 @@
state: started
enabled: yes

- name: Get status of chronyd
command: bash -lc "systemctl status chronyd"
register: command_result
ignore_errors: True
changed_when: False
- debug:
var: command_result.stdout_lines, command_result.stderr_lines

...
12 changes: 11 additions & 1 deletion tasks/sapnote/2772999/10-configure-systemd-tmpfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,23 @@
- debug:
msg: "SAP note 2772999 Step 10: Configure systemd-tmpfiles"

- name: Copy file /etc/tmpfiles.d/sap.conf
- name: Test if file /usr/lib/tmpfiles.d/sap.conf exists
stat:
path: /usr/lib/tmpfiles.d/sap.conf
register: systemd_sap_conf
failed_when: no

- debug:
var: systemd_sap_conf.stat.exists

- name: Copy file /etc/tmpfiles.d/sap.conf if necessary
copy:
src: etc/tmpfiles.d/sap.conf
dest: /etc/tmpfiles.d/sap.conf
owner: root
group: root
mode: '0644'
backup: yes
when: not systemd_sap_conf.stat.exists

...

0 comments on commit 7c1d73b

Please sign in to comment.