Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
1984ce17
Commit
1984ce17
authored
Apr 21, 2014
by
Ross Smith II
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1016 from jgornick/ansible-chdir
Update Ansible provisioner to set cwd to staging directory.
parents
2ab3346b
d9fc06a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
provisioner/ansible-local/provisioner.go
provisioner/ansible-local/provisioner.go
+2
-2
No files found.
provisioner/ansible-local/provisioner.go
View file @
1984ce17
...
...
@@ -222,8 +222,8 @@ func (p *Provisioner) executeAnsible(ui packer.Ui, comm packer.Communicator) err
extraArgs
=
" "
+
strings
.
Join
(
p
.
config
.
ExtraArguments
,
" "
)
}
command
:=
fmt
.
Sprintf
(
"%s %s%s -c local -i
\"
127.0.0.1,
\"
"
,
p
.
config
.
Command
,
playbook
,
extraArgs
)
command
:=
fmt
.
Sprintf
(
"
cd %s &&
%s %s%s -c local -i
\"
127.0.0.1,
\"
"
,
p
.
config
.
StagingDir
,
p
.
config
.
Command
,
playbook
,
extraArgs
)
ui
.
Message
(
fmt
.
Sprintf
(
"Executing Ansible: %s"
,
command
))
cmd
:=
&
packer
.
RemoteCmd
{
Command
:
command
,
...
...
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