aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2018-08-13 07:58:23 +0200
committerFabian Affolter <fabian@affolter-engineering.ch>2018-08-13 07:58:23 +0200
commiteaf861265746be6da3f8863d2458d3a8a3e39914 (patch)
tree3256ee44743d5ce0af1600597b40e4c2b2421c50
parent9e15170c2bae2b678be973359860a0c8d0d05c61 (diff)
downloadalpine-ansible-eaf861265746be6da3f8863d2458d3a8a3e39914.tar.bz2
alpine-ansible-eaf861265746be6da3f8863d2458d3a8a3e39914.tar.xz
Update style
-rw-r--r--tasks/phpinfo.yml52
1 files changed, 29 insertions, 23 deletions
diff --git a/tasks/phpinfo.yml b/tasks/phpinfo.yml
index 6abb77e..e662294 100644
--- a/tasks/phpinfo.yml
+++ b/tasks/phpinfo.yml
@@ -1,39 +1,45 @@
# This playbook install a simple file for displaying details about the PHP
# installation.
#
-# Copyright (c) 2013 Fabian Affolter <fabian@affolter-engineering.ch>
+# Copyright (c) 2013-2018 Fabian Affolter <fabian@affolter-engineering.ch>
#
# Licensed under CC BY 3.0. All rights reserved.
#
---
- name: create the needed directory
- file: path=/usr/share/webapps/phpinfo
- owner=root
- group=root
- mode=0755
- state=directory
+ file:
+ path: /usr/share/webapps/phpinfo
+ owner: root
+ group: root
+ mode: 0755
+ state: directory
- name: create a new file with lineinfile
- lineinfile: dest=/usr/share/webapps/phpinfo/index.php
- regexp='^'
- line=''
- state=present
- create=True
+ lineinfile:
+ dest: /usr/share/webapps/phpinfo/index.php
+ regexp: '^'
+ line: ''
+ state: present
+ create: True
- name: add a multiline string to the file and delete the string from before
- lineinfile: dest=/usr/share/webapps/phpinfo/index.php
- regexp='^'
- line='<?php\nphpinfo();\n?>'
- state=present
+ lineinfile:
+ dest: /usr/share/webapps/phpinfo/index.php
+ regexp: '^'
+ line: '<?php\nphpinfo();\n?>'
+ state: present
- name: set the permissions
- file: path=/var/www/lighttpd/
- mode=0777
- state=directory
+ file:
+ path: /var/www/lighttpd/
+ mode: 0777
+ state: directory
- name: create a symlink to the webserver root
- file: src=/usr/share/webapps/phpinfo/
- dest=/var/www/localhost/htdocs/phpinfo
- owner=root
- group=root
- state=link
+ file:
+ src: /usr/share/webapps/phpinfo/
+ dest: /var/www/localhost/htdocs/phpinfo
+ owner: root
+ group: root
+ state: link
+