2017-09-25 11:29:17 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: docker-storage-setup | install git and make
|
|
|
|
with_items: [git, make]
|
|
|
|
package:
|
|
|
|
pkg: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: docker-storage-setup | docker-storage-setup sysconfig template
|
|
|
|
template:
|
|
|
|
src: docker-storage-setup.j2
|
|
|
|
dest: /etc/sysconfig/docker-storage-setup
|
2022-01-09 09:51:12 +00:00
|
|
|
mode: 0644
|
2017-09-25 11:29:17 +00:00
|
|
|
|
|
|
|
- name: docker-storage-override-directory | docker service storage-setup override dir
|
|
|
|
file:
|
|
|
|
dest: /etc/systemd/system/docker.service.d
|
|
|
|
mode: 0755
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: docker-storage-override | docker service storage-setup override file
|
|
|
|
copy:
|
|
|
|
dest: /etc/systemd/system/docker.service.d/override.conf
|
|
|
|
content: |-
|
2017-11-21 21:37:52 +00:00
|
|
|
### This file is managed by Ansible
|
2017-09-25 11:29:17 +00:00
|
|
|
[Service]
|
|
|
|
EnvironmentFile=-/etc/sysconfig/docker-storage
|
|
|
|
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
2018-02-07 08:12:28 +00:00
|
|
|
# https://docs.docker.com/engine/installation/linux/docker-ce/centos/#install-using-the-repository
|
2017-12-15 12:06:55 +00:00
|
|
|
- name: docker-storage-setup | install lvm2
|
2021-06-05 11:16:39 +00:00
|
|
|
package:
|
2017-12-15 12:06:55 +00:00
|
|
|
name: lvm2
|
|
|
|
state: present
|
|
|
|
|
2017-09-25 11:29:17 +00:00
|
|
|
- name: docker-storage-setup | install and run container-storage-setup
|
|
|
|
become: yes
|
2019-02-26 03:29:32 +00:00
|
|
|
script: |
|
|
|
|
install_container_storage_setup.sh \
|
|
|
|
{{ docker_container_storage_setup_repository }} \
|
|
|
|
{{ docker_container_storage_setup_version }} \
|
|
|
|
{{ docker_container_storage_setup_profile_name }}
|
2017-09-25 11:29:17 +00:00
|
|
|
notify: Docker | reload systemd
|