diff --git a/tasks/.main.yml.swo b/tasks/.main.yml.swo deleted file mode 100644 index 083fdd44339428a737eadf88821959b325e34f49..0000000000000000000000000000000000000000 Binary files a/tasks/.main.yml.swo and /dev/null differ diff --git a/tasks/main.yml b/tasks/main.yml index cbf1d1152a3a4cd28402fc675777cefd7a7bc815..fe8538e7829a472e6e8ae2096ef43e4a48a38aba 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,19 +2,16 @@ # tasks file for rsync-server - name: rsyncd | install rsync - become: true yum: pkg: rsync state: present - name: rsyncd | create log directory - become: true file: path: /var/log/rsyncd state: directory - name: create share path - become: true file: path: "{{ item.path }}" state: directory @@ -24,15 +21,13 @@ - "{{ rsync_server_shares }}" - name: rsyncd | configure shares - become: true template: dest: /etc/rsyncd.conf src: etc-rsyncd-conf.j2 # No need to reload, file is re-read on each client connection. - name: rsyncd | start and enable service - become: true - systemd: + service: name: rsyncd enabled: true state: started