From af66612e6014bea48458125cda72d73c51bc3c20 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 25 Aug 2015 19:23:43 +0200 Subject: Initial commit --- roles/sublab_web/handlers/as_webuser.yaml | 5 +++++ roles/sublab_web/handlers/main.yaml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 roles/sublab_web/handlers/as_webuser.yaml create mode 100644 roles/sublab_web/handlers/main.yaml (limited to 'roles/sublab_web/handlers') diff --git a/roles/sublab_web/handlers/as_webuser.yaml b/roles/sublab_web/handlers/as_webuser.yaml new file mode 100644 index 0000000..53c6444 --- /dev/null +++ b/roles/sublab_web/handlers/as_webuser.yaml @@ -0,0 +1,5 @@ +--- +- name: Rebuild subweb website + shell: python template.py + args: + chdir: "/var/www/{{sublab_web_server_name}}/htdocs/scripts" diff --git a/roles/sublab_web/handlers/main.yaml b/roles/sublab_web/handlers/main.yaml new file mode 100644 index 0000000..1ea02c8 --- /dev/null +++ b/roles/sublab_web/handlers/main.yaml @@ -0,0 +1,5 @@ +--- +- include: as_webuser.yaml + become: yes + become_method: su + become_user: sublab_web -- cgit v1.2.1