From b331bcd3cc9f8b465c4cd54d66f7ca3cc7ffbc61 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mar 13 2015 22:02:10 +0000 Subject: ansible: Set up rsync, ensure libvirtd is started Need libvirt for imagefactory. --- diff --git a/ansible/atomic01-rsyncd.yml b/ansible/atomic01-rsyncd.yml new file mode 100644 index 0000000..3aa97ff --- /dev/null +++ b/ansible/atomic01-rsyncd.yml @@ -0,0 +1,18 @@ +- hosts: all + sudo: yes + + tasks: + - name: Ensure public_content_t label + file: path=/srv/fedora-atomic/output setype=public_content_t recurse=yes + state=directory + + - name: Set up rsync export for fedora-atomic + action: ini_file + dest=/etc/rsyncd.conf + section=fedora-atomic option=path + value=/srv/fedora-atomic/output + + - service: name=rsyncd enabled=yes state=started + + + diff --git a/ansible/provision.yml b/ansible/provision.yml index 7bef342..fab40cf 100644 --- a/ansible/provision.yml +++ b/ansible/provision.yml @@ -40,6 +40,8 @@ - service: name=docker.service enabled=yes state=started + - service: name=libvirtd.socket enabled=yes state=started + - file: path={{ inboxdir }} owner=root group=rpmostreecompose mode=775 state=directory