docker - setup nfs-client

This commit is contained in:
pgrondek 2020-04-13 17:53:49 +02:00
parent 6612a0d62f
commit 22fe99ae4d
3 changed files with 35 additions and 1 deletions

View File

@ -1,11 +1,17 @@
--- ---
- name: update rpc-statd - name: setup nfs-client
hosts: docker_swarm hosts: docker_swarm
become_method: sudo become_method: sudo
become_user: root become_user: root
become: yes become: yes
tasks: tasks:
- name: install nfs-client
apt:
update_cache: yes
pkg:
- nfs-common
- name: update rpc config - name: update rpc config
copy: copy:
src: rpc-statd.service src: rpc-statd.service

14
server/timezone.yml Normal file
View File

@ -0,0 +1,14 @@
---
- name: set timezone
hosts: server
become_method: sudo
become_user: root
become: yes
vars:
timezone: Europe/Warsaw
tasks:
- name: set timezone
shell:
cmd: |
timedatectl set-timezone {{ timezone }}

14
update.yml Normal file
View File

@ -0,0 +1,14 @@
---
- name: update software
hosts: docker_swarm, iron_man
become_method: sudo
become_user: root
become: yes
serial: 1
tasks:
- name: update apt
apt:
update_cache: yes
name: "*"
state: latest