docker - setup nfs-client
This commit is contained in:
parent
6612a0d62f
commit
22fe99ae4d
@ -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
14
server/timezone.yml
Normal 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
14
update.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user