--- - hosts: all sudo: yes tasks: - copy: src={{ item }} dest=/etc/httpd/conf.d/ with_fileglob: - files/etc/httpd/conf.d/*.conf notify: - httpd check - httpd reload handlers: - name: httpd check shell: httpd -t - name: httpd reload service: name=httpd state=reloaded $ ansible-playbook httpd.yml PLAY [all] ******************************************************************** TASK: [copy src={{ item
![Ansible の synchronize でローカルで削除したファイルを削除 - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/12a21fc338e5f25b8b8fdcab0fbf68a60efc2a9a/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9QW5zaWJsZSUyMCVFMyU4MSVBRSUyMHN5bmNocm9uaXplJTIwJUUzJTgxJUE3JUUzJTgzJUFEJUUzJTgzJUJDJUUzJTgyJUFCJUUzJTgzJUFCJUUzJTgxJUE3JUU1JTg5JThBJUU5JTk5JUE0JUUzJTgxJTk3JUUzJTgxJTlGJUUzJTgzJTk1JUUzJTgyJUExJUUzJTgyJUE0JUUzJTgzJUFCJUUzJTgyJTkyJUU1JTg5JThBJUU5JTk5JUE0JnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LWNsaXA9ZWxsaXBzaXMmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz05YTI2MzNkMTA2ZjA3OTg2MDY0N2Y4YTQwZTAzN2IwMA%26mark-x%3D142%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwbmd5dWtpJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz0xOTMwNGE1MjBlNDIwODY3NTBiOWVjZmQ1NDIzOTg5Yg%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3D3748e49d10fa8642732bb260d062cc0f)