Skip to content

Commit

Permalink
Merge pull request #17 from dominikl/become
Browse files Browse the repository at this point in the history
Become root
  • Loading branch information
jburel committed Mar 8, 2024
2 parents fd76fd4 + 20a0c27 commit 883b5c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- ansible.builtin.import_tasks: pre_tasks.yml

- name: docker | Import a key for docker
become: true
ansible.builtin.rpm_key:
state: present
key: https://download.docker.com/linux/centos/gpg
Expand Down Expand Up @@ -58,6 +59,7 @@

# change service file to remove _H options from service file to be able to use daemon.json
- name: docker | remove options from service
become: true
ansible.builtin.replace:
path: /usr/lib/systemd/system/docker.service
regexp: ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Expand Down

0 comments on commit 883b5c3

Please sign in to comment.