Skip to content

Commit 5c11424

Browse files
committed
Removed one variable
1 parent 232de4a commit 5c11424

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ No specific requirements for this role.
1515
Role Variables
1616
--------------
1717

18-
Two variables are used for this role: the user used to copy the custom scripts to the remote machine. The second variable is the location where the scripts will be stored.
18+
The only variable used for this role is the location where the scripts will be stored.
1919

20-
The variables can be configured like this:
20+
The variable can be configured like this:
2121

2222
```
23-
user: root
2423
customscripts_location: /opt/bin/
2524
```
2625

tasks/customscripts.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
path: /etc/sudoers
1111
state: present
1212
insertafter: '^%sudo'
13-
line: "{{ user }} ALL=NOPASSWD: /usr/bin/rsync"
13+
line: "{{ ansible_user }} ALL=NOPASSWD: /usr/bin/rsync"
1414
changed_when: false
1515
when: not customscripts.stat.exists
1616

@@ -26,7 +26,7 @@
2626
lineinfile:
2727
path: /etc/sudoers
2828
state: absent
29-
line: "{{ user }} ALL=NOPASSWD: /usr/bin/rsync"
29+
line: "{{ ansible_user }} ALL=NOPASSWD: /usr/bin/rsync"
3030
changed_when: false
3131
when: not customscripts.stat.exists
3232

0 commit comments

Comments
 (0)