Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.package
Commits
96f9d021
Commit
96f9d021
authored
6 years ago
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Use copy module instead of shell+echo
It is ansible standard and allows to set file mode.
parent
8d126cdb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
playbook/roles/standalone-shared/tasks/main.yml
playbook/roles/standalone-shared/tasks/main.yml
+1
-1
No files found.
playbook/roles/standalone-shared/tasks/main.yml
View file @
96f9d021
...
...
@@ -5,7 +5,7 @@
include_vars
:
erp5-common.yml
-
name
:
Store public IPv4 for other scripts
shell
:
echo "{{ ansible_default_ipv4.address }}" > /tmp/playbook-public-ipv
4
copy
:
content="{{ ansible_default_ipv4.address }}" dest=/tmp/playbook-public-ipv4 mode=064
4
-
name
:
create instance request script
template
:
src={{ request_instance_template }} dest=/tmp/playbook-request-{{ playbook_name }} mode=0700
...
...
This diff is collapsed.
Click to expand it.
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