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
8c1de9e7
Commit
8c1de9e7
authored
Feb 21, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provisioner/ansible-local: better error if missing [GH-836]
parent
4c09aac1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
CHANGELOG.md
CHANGELOG.md
+2
-0
provisioner/ansible-local/provisioner.go
provisioner/ansible-local/provisioner.go
+6
-0
No files found.
CHANGELOG.md
View file @
8c1de9e7
...
@@ -32,6 +32,8 @@ BUG FIXES:
...
@@ -32,6 +32,8 @@ BUG FIXES:
*
post-processor/vagrant: AWS/DigitalOcean keep input artifacts by
*
post-processor/vagrant: AWS/DigitalOcean keep input artifacts by
default. [GH-55]
default. [GH-55]
*
provisioners/ansible-local: Properly upload custom playbooks. [GH-829]
*
provisioners/ansible-local: Properly upload custom playbooks. [GH-829]
*
provisioners/ansible-local: Better error if ansible isn't installed.
[GH-836]
## 0.5.1 (01/02/2014)
## 0.5.1 (01/02/2014)
...
...
provisioner/ansible-local/provisioner.go
View file @
8c1de9e7
...
@@ -232,6 +232,12 @@ func (p *Provisioner) executeAnsible(ui packer.Ui, comm packer.Communicator) err
...
@@ -232,6 +232,12 @@ func (p *Provisioner) executeAnsible(ui packer.Ui, comm packer.Communicator) err
return
err
return
err
}
}
if
cmd
.
ExitStatus
!=
0
{
if
cmd
.
ExitStatus
!=
0
{
if
cmd
.
ExitStatus
==
127
{
return
fmt
.
Errorf
(
"%s could not be found. Verify that it is available on the
\n
"
+
"PATH after connecting to the machine."
,
p
.
config
.
Command
)
}
return
fmt
.
Errorf
(
"Non-zero exit status: %d"
,
cmd
.
ExitStatus
)
return
fmt
.
Errorf
(
"Non-zero exit status: %d"
,
cmd
.
ExitStatus
)
}
}
return
nil
return
nil
...
...
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