From 1de6236f80a879ca110981fe0e5c0c05c521225b Mon Sep 17 00:00:00 2001 From: Olaf Bohlen <olaf.bohlen@niit.com> Date: Thu, 20 Aug 2020 10:06:45 +0200 Subject: [PATCH] new stuff during t3 --- play-with-roles.yml | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/play-with-roles.yml b/play-with-roles.yml index 5191913..843a15a 100644 --- a/play-with-roles.yml +++ b/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 -- Gitblit v1.9.3