Applied ansible-lint fixes
This commit is contained in:
parent
24b567fc57
commit
347104529f
20 changed files with 239 additions and 220 deletions
|
|
@ -1,7 +1,8 @@
|
|||
---
|
||||
- name: Remove docker mapping files
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: '{{ item }}'
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
- /etc/subgid
|
||||
|
|
@ -10,38 +11,38 @@
|
|||
- name: Setup desktop configuration
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: 'files/desktop/docker-daemon.json'
|
||||
dest: '/etc/docker/daemon.json'
|
||||
mode: '0755'
|
||||
path: "files/desktop/docker-daemon.json"
|
||||
dest: "/etc/docker/daemon.json"
|
||||
mode: "0755"
|
||||
when: ansible_hostname == 'desktop'
|
||||
|
||||
- name: Remove user setup desktop configuration
|
||||
ansible.builtin.file:
|
||||
path: '{{ xdg_config_dir }}/docker/daemon.json'
|
||||
path: "{{ xdg_config_dir }}/docker/daemon.json"
|
||||
state: absent
|
||||
when: ansible_hostname == 'desktop'
|
||||
|
||||
- name: Check for .bashrc.override
|
||||
ansible.builtin.stat:
|
||||
path: '{{ ansible_env.HOME }}/.bashrc.override'
|
||||
path: "{{ ansible_env.HOME }}/.bashrc.override"
|
||||
register: bashrc_override
|
||||
|
||||
- name: Create .bashrc.override
|
||||
ansible.builtin.file:
|
||||
path: '{{ ansible_env.HOME }}/.bashrc.override'
|
||||
path: "{{ ansible_env.HOME }}/.bashrc.override"
|
||||
state: touch
|
||||
mode: '0755'
|
||||
mode: "0755"
|
||||
when: not bashrc_override.stat.exists
|
||||
|
||||
- name: Remove rootless DOCKER_HOST variable assignment
|
||||
ansible.builtin.lineinfile:
|
||||
path: '{{ ansible_env.HOME }}/.bashrc.override'
|
||||
regexp: '^export DOCKER_HOST='
|
||||
line: ''
|
||||
path: "{{ ansible_env.HOME }}/.bashrc.override"
|
||||
regexp: "^export DOCKER_HOST="
|
||||
line: ""
|
||||
|
||||
- name: Disable user docker socket
|
||||
ansible.builtin.systemd:
|
||||
name: '{{ item }}'
|
||||
name: "{{ item }}"
|
||||
state: stopped
|
||||
enabled: false
|
||||
scope: user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue