Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
18 lines
497 B
YAML
18 lines
497 B
YAML
---
|
|
# findmnt returns 0 on hit, 1 on miss
|
|
# If the return code is higher than 1, it's a blocking failure
|
|
- name: "check if /usr is a read-only partition"
|
|
ansible.builtin.command:
|
|
cmd: 'findmnt /usr --noheadings --options ro'
|
|
changed_when: False
|
|
failed_when: usr_partition.rc > 1
|
|
check_mode: no
|
|
register: usr_partition
|
|
|
|
- name: "mount /usr in rw"
|
|
ansible.builtin.command:
|
|
cmd: 'mount -o remount,rw /usr'
|
|
changed_when: False
|
|
when: usr_partition.rc == 0
|
|
notify: remount usr
|