play-with-roles.yml
@@ -8,7 +8,12 @@ msg: 'this runs before the roles' roles: - prep_server tasks: - name: prepare sample html content copy: dest: /var/www/htdocs/index.html content: "foobar" notify: "set permissions" post_tasks: - name: post_tasks run here debug: @@ -18,3 +23,8 @@ url: "http://localhost:80/index.html" return_content: yes when: port == 'http' handlers: - name: set permissions file: dest: /var/www/htdocs/index.html mode: 644