summaryrefslogtreecommitdiffstats
path: root/ansible/roles/gsm-tester/tasks
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-02-17 13:02:58 +0100
committerlaforge <laforge@osmocom.org>2020-02-21 20:09:11 +0000
commit90987935bcfb582fd96cd20f45456a3a87e1c0f2 (patch)
treeb259667a78b9e4556227674f6af21c749edd91ef /ansible/roles/gsm-tester/tasks
parent53e8b0575f01c132ffee4ddb9d4e55b166667227 (diff)
ansible: gsm-tester: Use file module instead of manual mkdir
From ansible: [WARNING]: Consider using the file module with state=directory rather than running 'mkdir'. Change-Id: I2c541878033360a9d427d13b62c1cc075d5f92b7
Diffstat (limited to 'ansible/roles/gsm-tester/tasks')
-rw-r--r--ansible/roles/gsm-tester/tasks/main.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/ansible/roles/gsm-tester/tasks/main.yml b/ansible/roles/gsm-tester/tasks/main.yml
index ecdd254..db2a16c 100644
--- a/ansible/roles/gsm-tester/tasks/main.yml
+++ b/ansible/roles/gsm-tester/tasks/main.yml
@@ -365,18 +365,22 @@
tags:
- osmo-gsm-tester-proc
+- name: Install osmo-gsm-tester script helpers to /usr/local/bin (PATH) (mkdir)
+ file: path=/usr/local/bin state=directory
+
- name: Install osmo-gsm-tester script helpers to /usr/local/bin (PATH)
shell: |
- mkdir -p /usr/local/bin/ && \
cp utils/bin/*.sh /usr/local/bin/
args:
chdir: /root/osmo-gsm-tester
tags:
- osmo-gsm-tester-proc
+- name: Install osmo-gsm-tester sudoers.d files to /etc/sudoers.d/ (PATH (mkdir)
+ file: path=/etc/sudoers.d/ state=directory
+
- name: Install osmo-gsm-tester sudoers.d files to /etc/sudoers.d/ (PATH)
shell: |
- mkdir -p /etc/sudoers.d/ && \
cp utils/sudoers.d/* /etc/sudoers.d/
args:
chdir: /root/osmo-gsm-tester