Fix boot order if necessary.
This commit is contained in:
parent
a8f950e085
commit
be70ac6984
2 changed files with 27 additions and 2 deletions
|
@ -70,11 +70,14 @@
|
|||
dest: /etc/firefox-esr/policies/
|
||||
|
||||
|
||||
- name: Copy pwroff script
|
||||
- name: Copy pwroff and bootorder scripts
|
||||
copy:
|
||||
src: pwroff
|
||||
src: "{{ item }}"
|
||||
dest: /usr/local/sbin/
|
||||
mode: 0755
|
||||
loop:
|
||||
- pwroff
|
||||
- bootorder.sh
|
||||
|
||||
- name: Provide service and timer for pwroff script
|
||||
copy:
|
||||
|
@ -90,6 +93,10 @@
|
|||
name: pwroff.timer
|
||||
enabled: true
|
||||
|
||||
- name: Fix boot order
|
||||
command: /usr/local/sbin/bootorder.sh
|
||||
register: cmd_result
|
||||
changed_when: cmd_result.stdout is not search('Nothing to do.')
|
||||
|
||||
- name: Copy dolphin config scripts
|
||||
ansible.builtin.copy:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue