[ansible-project] Ansible and Packer

2018-04-09 Thread 'J Hawkesworth' via Ansible Project
Sure.

Install packer on the same machine as you have installed ansible Andy then 
start packer using shell module, delegated to local host. 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/117aa515-e4af-4c4d-8eed-40ee14e72cca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible and Packer

2018-04-06 Thread Saurabh
Hi Team, 

How can we call Packer from Ansible.( It's Same way we call 
Docker_Container from Ansible ) 


Ansible --> Packer --> Docker 
( In Docker Image Configuration also 
will be done by Ansible ) 


Any Solutions for this 

Regards
Saurabh 



-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bcfd29f3-aed4-430f-b048-e2706656b333%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible with Packer, root

2015-05-04 Thread mic gourdet


I am using Ansible 1.9 and Packer to create and install new package on a 
Debian VM.

Packer run my playbook, but the installation of the package fail because I 
am not root.

Can anyone give me an example of a playbook which install a package on a 
Debian ? (With of course the possibility to be root in order to run apt-get 
install)


My actual playbook (which is not ok) is the following (I install fortune 
for a basic example)

hosts: all
user: root

tasks:
apt: name=fortune state=installed



Thanks for any help

-- 
You received this message because you are subscribed to the Google Groups 
Ansible Project group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8bc4595c-1cb5-4082-b500-18ab47d257bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible with Packer, root

2015-05-04 Thread Brian Coca
tasks is list, so each one needs to be preceded by a dash '-'

hosts: all
user: root
tasks:
  - apt: name=fortune state=installed




-- 
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
Ansible Project group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8nMhqjpou%2BS4r%2BPbJVf%2BwvJYqErrCrcu%3DyuxrbtX_oaFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.