From 22fe99ae4dc4fb85c47493e1cb1bf4e076fc23c6 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Mon, 13 Apr 2020 17:53:49 +0200 Subject: [PATCH] docker - setup nfs-client --- docker/{update-rpc.yml => nfs-client.yml} | 8 +++++++- server/timezone.yml | 14 ++++++++++++++ update.yml | 14 ++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) rename docker/{update-rpc.yml => nfs-client.yml} (77%) create mode 100644 server/timezone.yml create mode 100644 update.yml diff --git a/docker/update-rpc.yml b/docker/nfs-client.yml similarity index 77% rename from docker/update-rpc.yml rename to docker/nfs-client.yml index 677cc51..dd99e44 100644 --- a/docker/update-rpc.yml +++ b/docker/nfs-client.yml @@ -1,11 +1,17 @@ --- -- name: update rpc-statd +- name: setup nfs-client hosts: docker_swarm become_method: sudo become_user: root become: yes tasks: + - name: install nfs-client + apt: + update_cache: yes + pkg: + - nfs-common + - name: update rpc config copy: src: rpc-statd.service diff --git a/server/timezone.yml b/server/timezone.yml new file mode 100644 index 0000000..0d03269 --- /dev/null +++ b/server/timezone.yml @@ -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 }} diff --git a/update.yml b/update.yml new file mode 100644 index 0000000..2f15510 --- /dev/null +++ b/update.yml @@ -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 \ No newline at end of file