Update docker role
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
97d923feb1
commit
5a452f5687
6 changed files with 31 additions and 102 deletions
|
|
@ -2,14 +2,9 @@
|
|||
- name: Include vars for {{ ansible_os_family }}
|
||||
include_vars: "{{ ansible_os_family }}_{{ docker_ver }}.yml"
|
||||
|
||||
# Is it needed any more ?
|
||||
#- name: "Ensure system is x86_64"
|
||||
# fail: msg="Docker requires a 64bit system architecture"
|
||||
# when: "ansible_architecture != 'x86_64'"
|
||||
#
|
||||
#- name: See if docker is installed
|
||||
# stat: path=/usr/bin/docker
|
||||
# register: docker_installed
|
||||
- name: See if docker is installed
|
||||
stat: path=/usr/bin/docker
|
||||
register: docker_installed
|
||||
|
||||
- name: Install docker rules for {{ ansible_os_family }} OS family
|
||||
include_tasks: "{{ ansible_os_family }}.yml"
|
||||
|
|
@ -39,10 +34,8 @@
|
|||
|
||||
# Add normal user to docker group
|
||||
|
||||
- include_tasks: tools.yml
|
||||
|
||||
# Configuration dans /etc/docker/daemon.json
|
||||
- name: config_docker | Ensuring /etc/docker Folder Exists
|
||||
- name: Config_docker | Ensuring /etc/docker Folder Exists
|
||||
file:
|
||||
path: "/etc/docker"
|
||||
state: "directory"
|
||||
|
|
@ -50,7 +43,7 @@
|
|||
owner: root
|
||||
mode: 0700
|
||||
|
||||
#- name: config_docker | Configuring Docker
|
||||
#- name: Config_docker | Configuring Docker
|
||||
# template:
|
||||
# src: "etc/docker/daemon.json.j2"
|
||||
# dest: "/etc/docker/daemon.json"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue