We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eb3597 commit 3538bb2Copy full SHA for 3538bb2
olam/provision_builder.yml
@@ -74,6 +74,17 @@
74
mode: '0644'
75
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
76
77
+ - name: Check if user is lingering
78
+ ansible.builtin.stat:
79
+ path: "/var/lib/systemd/linger/{{ username }}"
80
+ register: user_lingering
81
+
82
+ - name: Enable lingering is needed
83
+ ansible.builtin.command: "loginctl enable-linger {{ username }}"
84
+ register: linger_result
85
+ changed_when: linger_result.rc == 0
86
+ when: not user_lingering.stat.exists
87
88
- name: Install Oracle Linux Automation Manager Builder Utility
89
ansible.builtin.dnf:
90
name:
0 commit comments