[ansible-project] Re: HP ILO set from ansible (no OS installed)

2018-04-09 Thread Benny Kusman
Hi Dave and Amarjeet, Thanks for the feedback. i will give it a try! Many thanks! On Monday, April 9, 2018 at 8:37:15 AM UTC, Benny Kusman wrote: > > Hi, > > has anyone implemented setting up HP ILO using ansible, when the server > has no OS yet ? > if the server has been installed and has

Re: [ansible-project] Re: HP ILO set from ansible (no OS installed)

2018-04-09 Thread Amarjeet Raja
Hi Benny, As far as I know, Ansible doesn't have any modules which can do inital configuration of an ILO. However, You can automate the ILO configuration using HP Oneview along with ansible. You can find the details in this url : https://h20195.www2.hpe.com/v2/getpdf.aspx/4AA6-6348ENW.pdf

Re: [ansible-project] Re: Steps for ssh forwarding?

2018-04-09 Thread Benny Kusman
Michael, you are SO RIGHT! now the tunneling works after your clue! completely missed out this "*remote*" On Monday, April 9, 2018 at 1:48:50 PM UTC, Michael Spiegle wrote: > > I think this is because the SSH command always expects a hostname even if > there isn't a hostname to use. In your

[ansible-project] Re: HP ILO set from ansible (no OS installed)

2018-04-09 Thread Dave H
Hi Benny, There are a couple of development modules in the ansible docs, e.g. https://docs.ansible.com/ansible/devel/modules/hpilo_boot_module.html, but I have not used them. I use the python package from http://seveas.github.io/python-hpilo to expose a command line interface and use an

Re: [ansible-project] Ansible Jinja2 filter error Rhel 7.4

2018-04-09 Thread Matt Martz
Use `search` or `match` instead of `equalto`. They are regex search tests. `search` matches anywhere within the string, `match` is bound to matching where a string starts with a value. On Mon, Apr 9, 2018 at 5:02 PM, Shahzad Malik wrote: > Yes. Equalto was added in

Re: [ansible-project] Ansible Jinja2 filter error Rhel 7.4

2018-04-09 Thread Shahzad Malik
Yes. Equalto was added in 2.8 and I can't use this ver on RHEL at this stage. Is there other than equalto solution which I can use with 2.7 On RHEL 7.4? Thanks On Monday, April 9, 2018, Kai Stian Olstad wrote: > On Monday, 9 April 2018 14.38.51 CEST

[ansible-project] Unnerving include_role behaviour

2018-04-09 Thread Dave H
Hi, I'm trying to get some clarity on the expected behaviour of the following scenario. I've included the file contents of a demonstration set of roles below. My question is about the behaviour of the include vs import changes between 2.3.2.0 and 2.4+. On 2.3.2.0, the included role would be

[ansible-project] Re: Ansible user privilege

2018-04-09 Thread Quang Truong
I tried with this guide https://stackoverflow.com/questions/37880491/ansible-tmp-ansible-tmp-permission-denied It works for my case but I don't understand what happen behind the scene -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[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

[ansible-project] Re: Ansible 2.5 with ansible-hpe-cw7 module issue

2018-04-09 Thread EDDY BEN-KAISSA
Hi, May be I must used the ansible_connection netconf to specify the method of connection to the switch [hpe] hp1 ansible_host=192.168.2.20 ansible_connection=netconf *Playbook example:* hosts: rtr1 *connection: netconf* *remote_user: admin* What do you thinking about ? Thanks.

Re: [ansible-project] Re: Steps for ssh forwarding?

2018-04-09 Thread Michael Spiegle
I think this is because the SSH command always expects a hostname even if there isn't a hostname to use. In your ssh -vvv debug output, you can see that every single option is inside of [optional] brackets EXCEPT for the hostname. SSH won't actually use this hostname for anything, it just wants

[ansible-project] Possible approaches to iteration

2018-04-09 Thread tom . reynick
I would like to understand semantics of `with_items` in ansible and compare this approach to `map` for example. For example, let consider: `{{ ["1","2", "3"] | map('regex_replace', '^(.*)$', \1'some tail') tail }}` How to reach the same effect using `with_items` ? And in general how

[ansible-project] map vs with_items

2018-04-09 Thread tom . reynick
I would like to understand semantics of `with_items` in ansible and compare this approach to `map` for example. For example, let consider: `{{ ["1","2", "3"] | map('regex_replace', '^(.*)$', \1'some tail') tail }}` How to reach the same effect using `with_items` ? And in general how

Re: [ansible-project] ansible handling stdin input

2018-04-09 Thread Benny Kusman
thanks Richard! On Monday, April 9, 2018 at 6:04:51 PM UTC+8, richard wrote: > > On 09/04/18 21:57, Benny Kusman wrote: > > Hi > > > > Hopefully someone has encountered and resolved this issue. > > > > supposedly my playbook: > > *- main: execute script* > > * shell: "/home/settingip"*

Re: [ansible-project] Ansible Jinja2 filter error Rhel 7.4

2018-04-09 Thread Kai Stian Olstad
On Monday, 9 April 2018 14.38.51 CEST smitconsultant2...@gmail.com wrote: > Hi > I am trying to run below playbook to find the server (openstack host), on > which vm will be running using jinja2 filter but getting error no test > named 'equalto'. After googling found some ppl suggested upgrade

[ansible-project] Ansible Jinja2 filter error Rhel 7.4

2018-04-09 Thread smitconsultant2017
Hi I am trying to run below playbook to find the server (openstack host), on which vm will be running using jinja2 filter but getting error no test named 'equalto'. After googling found some ppl suggested upgrade jinja2 and I am using version 2.7 on RHEL which is latest for RHEL. I was able to

Re: [ansible-project] ansible handling stdin input

2018-04-09 Thread Richard Hector
On 09/04/18 21:57, Benny Kusman wrote: > Hi  > > Hopefully someone has encountered and resolved this issue. > > supposedly my playbook: > *- main: execute script* > *  shell: "/home/settingip"* > > when executing the program, it will run and require stdin/keyboard > input, such as IP, hostname,

[ansible-project] ansible handling stdin input

2018-04-09 Thread Benny Kusman
Hi Hopefully someone has encountered and resolved this issue. supposedly my playbook: *- main: execute script* * shell: "/home/settingip"* when executing the program, it will run and require stdin/keyboard input, such as IP, hostname, etc. can i pre-fill this in ansible ? knowing that the

[ansible-project] HP ILO set from ansible (no OS installed)

2018-04-09 Thread Benny Kusman
Hi, has anyone implemented setting up HP ILO using ansible, when the server has no OS yet ? if the server has been installed and has hponcfg command, there is ansible module for it. But wondering, if anyone has tried to setup the server in the ilo using ansible (just simply specifying the ilo

[ansible-project] MySQL install with ansible

2018-04-09 Thread Nirmalya Paul
hello all, I need a help. I need to install mysql using Ansible on CentOs. Can u please show me whole process to do it . -- 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

Re: [ansible-project] Re: Steps for ssh forwarding?

2018-04-09 Thread Benny Kusman
This is the -vvv output: [root@WW-GVXQLC2 ansible]# ssh -F ssh.config bkusman@serverbehindjumpbox -p 670 -vvv OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data ssh.config debug1: ssh.config line 28: Applying options for * debug1: Executing proxy command: exec ssh

Re: [ansible-project] Re: Steps for ssh forwarding?

2018-04-09 Thread Sosys
Hi ssh -F ssh.config -fN user@some_jumpbox --> im able to establish this and send it back to the background ssh -F ssh.config user@someserverbehindjumpbox --> does not work. the message is: ssh_exchange_identification: Connection closed by remote host the "hosts" im referring to is in the