Skip to content

Commit

Permalink
Remove non-idempotent /var/lib/docker hack, redimension instance root…
Browse files Browse the repository at this point in the history
… volume instead. Make sure PCGR release is unpacked in destination
  • Loading branch information
brainstorm committed May 4, 2018
1 parent 3b76671 commit 683fdc2
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions ansible/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,27 +125,6 @@
groups: docker
append: yes

# XXX: Use ansible handlers for this
- name: Stop docker daemon
systemd:
daemon_reload: yes
state: stopped
name: docker
enabled: yes

# XXX: Not idempotent!!
- name: Move /var/lib/docker to /mnt for space reasons
become: true
command: mv /var/lib/docker /mnt/docker

- name: Symlink docker
become: true
file:
src: "/mnt/docker"
dest: "/var/lib/docker"
state: link

# XXX: Use ansible handlers for this
- name: Start docker daemon
systemd:
daemon_reload: yes
Expand All @@ -163,7 +142,6 @@
- name: Download and unpack PCGR software, release "{{ pcgr.release }}"
unarchive:
src: https://github.com/sigven/pcgr/archive/{{ pcgr.release }}.tar.gz
creates: "{{ pcgr.mount }}/pcgr-{{ pcgr.number_release }}"
dest: "{{ pcgr.mount }}"
remote_src: True

Expand Down

0 comments on commit 683fdc2

Please sign in to comment.