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