summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYanis Guenane <yguenane@redhat.com>2017-11-30 15:41:41 +0100
committerYanis Guenane <yguenane@redhat.com>2017-11-30 15:41:54 +0100
commit0c83d9ce071ca03d550827de2f7abd17f0d4bbc9 (patch)
tree164a9d755c7f88f81e55c3858ef0ee4ad5969c71
parent1bebe5ce46cc488dd9dc00edd6459dc2c2553e5a (diff)
Ensure become: True when installing package and starting service
Change-Id: I50e4cee4030ee68d72c8e2b228dc431223150849
-rw-r--r--tasks/main.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index c99891f..06af7da 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -18,10 +18,12 @@
include_vars: '{{ ansible_os_family }}.yml'
- name: Install the apache httpd package
+ become: True
package:
name: '{{ httpd_package_name }}'
- name: Start the apache httpd service
+ become: True
service:
name: '{{ httpd_service_name }}'
state: started