summaryrefslogtreecommitdiffstats
path: root/roles/nuage_master
diff options
context:
space:
mode:
authorJason DeTiberus <detiber@gmail.com>2016-04-25 16:18:37 -0400
committerJason DeTiberus <detiber@gmail.com>2016-04-25 16:18:37 -0400
commit4e01bd4a87088f53af309b36ce4da431888fcaf4 (patch)
tree557c508905cf93d2f37928b9fbc8600d2a416bdb /roles/nuage_master
parent3262718f8fc4658a3b223823244f1f78cb0eb6c8 (diff)
parenta5386b0f51a2b20f0b5c382663bb5827438da437 (diff)
downloadopenshift-4e01bd4a87088f53af309b36ce4da431888fcaf4.tar.gz
openshift-4e01bd4a87088f53af309b36ce4da431888fcaf4.tar.bz2
openshift-4e01bd4a87088f53af309b36ce4da431888fcaf4.tar.xz
openshift-4e01bd4a87088f53af309b36ce4da431888fcaf4.zip
Merge pull request #1804 from abutcher/v2-sudo
Replace deprecated sudo with become.
Diffstat (limited to 'roles/nuage_master')
-rw-r--r--roles/nuage_master/handlers/main.yaml2
-rw-r--r--roles/nuage_master/tasks/main.yaml10
2 files changed, 6 insertions, 6 deletions
diff --git a/roles/nuage_master/handlers/main.yaml b/roles/nuage_master/handlers/main.yaml
index 5d133cf16..56224cf82 100644
--- a/roles/nuage_master/handlers/main.yaml
+++ b/roles/nuage_master/handlers/main.yaml
@@ -1,6 +1,6 @@
---
- name: restart nuage-openshift-monitor
- sudo: true
+ become: yes
service: name=nuage-openshift-monitor state=restarted
- name: restart master
diff --git a/roles/nuage_master/tasks/main.yaml b/roles/nuage_master/tasks/main.yaml
index c71f3072c..b8eaede3b 100644
--- a/roles/nuage_master/tasks/main.yaml
+++ b/roles/nuage_master/tasks/main.yaml
@@ -1,20 +1,20 @@
---
- name: Create directory /usr/share/nuage-openshift-monitor
- sudo: true
+ become: yes
file: path=/usr/share/nuage-openshift-monitor state=directory
- name: Create the log directory
- sudo: true
+ become: yes
file: path={{ nuage_mon_rest_server_logdir }} state=directory
- name: Install Nuage Openshift Monitor
- sudo: true
+ become: yes
yum: name={{ nuage_openshift_rpm }} state=present
- include: serviceaccount.yml
- name: Download the certs and keys
- sudo: true
+ become: yes
fetch: src={{ cert_output_dir }}/{{ item }} dest=/tmp/{{ item }} flat=yes
with_items:
- ca.crt
@@ -25,7 +25,7 @@
- include: certificates.yml
- name: Create nuage-openshift-monitor.yaml
- sudo: true
+ become: yes
template: src=nuage-openshift-monitor.j2 dest=/usr/share/nuage-openshift-monitor/nuage-openshift-monitor.yaml owner=root mode=0644
notify:
- restart master