ansible: correct hosts and docker service file

This commit is contained in:
tylen 2025-03-20 21:31:45 +00:00
parent 44737795fe
commit 8618439c95
2 changed files with 1 additions and 9 deletions

View File

@ -1,4 +1,3 @@
[workers] [workers]
vm-jenkins-100-30 ansible_host=192.168.100.30 ansible_user=tylen vm-media-100-55 ansible_host=192.168.100.55 ansible_user=tylen
vm-tools-100-55 ansible_host=192.168.100.55 ansible_user=tylen
vm-tools-100-65 ansible_host=192.168.100.65 ansible_user=tylen vm-tools-100-65 ansible_host=192.168.100.65 ansible_user=tylen

View File

@ -30,13 +30,6 @@
state: latest state: latest
update_cache: true update_cache: true
- name: Ensure the Docker service file is backed up
copy:
src: /lib/systemd/system/docker.service
dest: /lib/systemd/system/docker.service.bak
remote_src: yes
when: ansible_distribution == "Ubuntu"
- name: Update ExecStart in Docker service file with exposing the port - name: Update ExecStart in Docker service file with exposing the port
lineinfile: lineinfile:
path: /lib/systemd/system/docker.service path: /lib/systemd/system/docker.service