[ansible-project] Ansible SSH bastion host and changing SSH port

2019-02-20 Thread Benny Kusman
Hi, i got a question on how to change the SSH port via bastion host So, the setup is this: ansible server (on ssh port 6701) ---> Bastion server (on ssh port 6701) --> linux server (on ssh port 22) i tried to add "ansible_ssh=22" in the inventory file, but this will try to connect from

[ansible-project] ansible inventory file not found when running from subfolder

2018-04-14 Thread Benny Kusman
Hi, So i got this error: [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' This is the ansible information [ansible@laansible1]$ ansible --version ansible 2.5.0 config file = /etc/ansible/ansible.cfg configured

[ansible-project] ansible playbook become-method not working

2018-04-14 Thread Benny Kusman
Hi, so i got this playbook with this header: --- #WEBSERVVER - hosts: webserver user: ansible become: yes become_method: su when running the playbook via command: ansible-playbook -i ../hosts webserver.yml -K SUDO password: Instead of asking for su password, it's somehow asking for

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

2018-04-11 Thread Benny Kusman
wr_btn" > when: power_status != "ON" > > - name: Reboot server - if it is powered up > command: "{{hpilo_cli_cmd}} cold_boot_server" > when: power_status == "ON" > > Hope that helps. > > Dave > > > On Monday, 9 April

[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

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

2018-04-09 Thread Benny Kusman
" > like > the following. Note that the host "remote" doesn't exist and you'd > probably receive an error under normal circumstances: > > Host *.someserverbehindjumpbox.com > ControlMaster no > ProxyCommand ssh -S ~/.ssh/master-*@jumpboxserver:%p -W %h:%p > ​

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: execu

[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

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

2018-04-09 Thread Benny Kusman
@]hostname [command] ssh_exchange_identification: Connection closed by remote host On Monday, April 9, 2018 at 7:18:32 AM UTC, Benny Kusman wrote: > > Hi > > ssh -F ssh.config -fN user@some_jumpbox --> im able to establish this > and send it back to the background > s

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

2018-04-05 Thread Benny Kusman
this is a great step. im able to establish the tunneling with the jumphost. but i was wondering, what did you put in the hosts filfe ? im still not able to reach the server On Monday, February 16, 2015 at 12:11:58 AM UTC, Michael Spiegle wrote: > > As an additional datapoint, here's a brief