- hosts: all tasks: - name: Pull contents back synchronize: mode: pull src: "/home/zuul/src/opendev.org/inaugust/inaugust.com/{{ javascript_content_dir }}/" dest: "{{ zuul.executor.work_root }}/dist/" - hosts: localhost tasks: - name: Add ns1.inaugust.com to inventory add_host: name: ns1.inaugust.com ansible_python_interpreter: python3 ansible_user: mordred - name: Add ns1 hostkey to known hosts known_hosts: name: ns1.inaugust.com key: "ns1.inaugust.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDvCg98cFYN7zqdF7742dlnme9lp7QGCemMlF68NLVpuDt7FxqH7blel2ju3upnz1LZHPU9nPuI/+ByYQ+7/1ezGS+N5CQIfWkvhFnBRlwNqIEP/Lfyw3LhFm72QRwDuKxkV5kKzZHXhNlg0I2PgLwDliijSX/0WW9Vgkb2zv/tLXbEM6LBSCXwAPjlfc6LVwmkY3vSxulU6kyL7Izyi83lD533g7jKP8KkOjuFEled8biKV2sP1hIc0tWWlL47G0jRdyB6LVmxOlb0arULfhqEWdW7qldIj2bPmUd2cAG522OoPYZQdDgGYPQlyS0ZJgWvjYoatUAyq8B7ELeJwqN62rcwn8yX3o+bykDX50HCKlrfHHsisST+YcOTtDG8X4H5UlGtMUygmpFEJjUOOoHD6dwmT1R92V5a3Sov1W2Fc7TcfmFoXo1G3N0/wsruVfmzJ7Q/WNtBf4p+c9DXTfJcNKfOIs6o/7ZrzexctEZQRFa7cxBEv2n+fVDN3DcQ12k=" - hosts: ns1.inaugust.com tasks: - name: Publish the contents synchronize: src: "{{ zuul.executor.work_root }}/dist/" dest: "/var/www/inaugust.com/"