Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vagrantsetup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
devbox
vagrantsetup
Commits
0460704a
Commit
0460704a
authored
Sep 26, 2019
by
Reimar Stier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add path /opt/bin to environment
parent
9a6c8228
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
xfce4_configuration.yml
tasks/xfce4_configuration.yml
+18
-0
No files found.
tasks/xfce4_configuration.yml
View file @
0460704a
...
...
@@ -9,3 +9,21 @@
service
:
name="gdm" state="restarted"
when
:
_shell_output.changed
-
name
:
Define paths to be added
set_fact
:
environment_file
:
"
/etc/environment"
environment_path_add
:
"
/opt/bin/"
-
name
:
Check if path in environment
shell
:
"
grep
'/opt/bin/'
{{
environment_file
}}"
register
:
_environment_check
failed_when
:
false
changed_when
:
false
-
name
:
Ensure path is added to environment
lineinfile
:
path
:
"
{{
environment_file
}}"
regexp
:
'
^PATH="(.*)"$'
line
:
'
PATH="{{
environment_path_add
}}:\1"'
backrefs
:
yes
when
:
_environment_check.rc != 0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment