[ansible-project] Re: version 0.9: wait_for suck in wait until timeout, it cannot wake up after the host can be accessed by ssh

2015-02-26 Thread hce h
Sorry, the version is 1.9. On Thursday, February 26, 2015 at 7:32:46 PM UTC+11, hce h wrote: > > Hi, > > I have following wait_for statement after reboot the host, but it stuck in > the wait until the timeout even the host can be accessed manually when I > run ssh the host. I

[ansible-project] version 0.9: wait_for suck in wait until timeout, it cannot wake up after the host can be accessed by ssh

2015-02-26 Thread hce h
Hi, I have following wait_for statement after reboot the host, but it stuck in the wait until the timeout even the host can be accessed manually when I run ssh the host. Is it a bug or what I could be missing? - name: Wait for restart local_action: wait_for host="{{ inventory_hostname }}" por

Re: [ansible-project] OpenStack heat template syntax

2015-02-18 Thread hce h
Could you give an example how to run with_sequence in following heat template? The HOT template syntax is different to ansible template. heat_HOT.yml: .. name: my_server_%index% ... On Wednesday, February 18, 2015 at 1:46:02 PM UTC+11, Brian Coca wrote: > > you might want to use wi

[ansible-project] ansible inconsistant behavor

2015-02-18 Thread hce h
Hi, I've got following issues to rum yum module on compute node CentOS 6.5, some node (compute0) could not install sssd (but can install other packages), and some node (compute1) can install without any issues. When I went to compute0 and run "yum install sssd" manually, there is no problem at

[ansible-project] OpenStack heat template syntax

2015-02-17 Thread hce h
Hi, I am using OpenStack Heat template to generate vms, does anyone know how to increase numerical index? According to the heat document, the numerical index can be used in the template: name: my_server_%index% How can I add one to the index number like following one (but that is not correct

[ansible-project] User module: useradd without cerate home directory

2015-01-22 Thread hce h
Hi, Which option in ansible user module to create user account whitout creating user home directory like "useradd -M"? Thank you. - j -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

Re: [ansible-project] ansible module to partition and format disk

2015-01-19 Thread hce h
Thanks Brian, but I also want to partition the disk, the filesystem_module doesn't seem able to do the partition, collect me if I am wrong. On Tuesday, January 20, 2015 at 2:43:42 AM UTC+11, Brian Coca wrote: > > i think you want the filesystem module > > http://docs.ansible.com/filesystem_modul

[ansible-project] ansible module to partition and format disk

2015-01-19 Thread hce h
Hi, What are the ansible modules to partition and format (mkfs.ext4) disks? Thank you. - j -- 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

[ansible-project] Has 1.8.2 fix the mount [Errno 17] File exists?

2015-01-08 Thread hce h
Hi, The error occurred when a a point has been mounted, it should just skip the process if the mount point has already been mounted. If I umount it first, it works. Has it been fixed in 1.8.2? https://github.com/ansible/ansible/issues/2484 -- You received this message because you are subscri

Re: [ansible-project] handler is called in v1.8.2

2015-01-08 Thread hce h
ot; run_once: true sudo: true Thanks Tom, - j On Thursday, January 8, 2015 at 7:51:22 PM UTC+11, Tom Bamford wrote: > > Can you post some output? A handler will only be called if the task was > considered changed. > > On 8 January 2015 at 05:56, hce h > > wrote: &

[ansible-project] Are there any module for yum groupinstall?

2015-01-07 Thread hce h
Hi, I could not find ansible module to run yum groupinstall, or should I call it from shell statement? Thank you. - j -- 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 a

[ansible-project] handler is called in v1.8.2

2015-01-07 Thread hce h
Hi, I have a task to use notify statement to call the handler, but it did not seem called. The output of tasks did not show the handler task. Should the output of tasks show the handler task if it was called? Thanks. - j -- You received this message because you are subscribed to the Google G

Re: [ansible-project] Pass dictionary variables to the role does not work

2015-01-07 Thread hce h
ble which got contents of {u'skipped': True, u'changed': False}. If I commented the register statement out, it works. The question is why the register can still be called even the when condition is in false status? On Wednesday, January 7, 2015 10:00:29 PM UTC+11, hce h wrot

[ansible-project] unregister

2015-01-07 Thread hce h
Hi, I need to unregister a variable after using (the following statement is meaningless, it just gives you an example), but I could not find a module called unregister or clear, or reset the register variable, please advice. - name: register something register: temVariable when: temVariable

Re: [ansible-project] Pass dictionary variables to the role does not work

2015-01-07 Thread hce h
d not get it work. Both CentOS 7 and Ubuntu 14 got the same exception at - { role: nfs-client, nfsServer: { 'ansible_facts': { 'ansible_eth0' : { 'ipv4' : { 'address': 'hce.com' } } } } } Thanks Toshio. Thanks, Toshio > On Jan 5, 2015 5:59 P

Re: [ansible-project] Pass dictionary variables to the role does not work

2015-01-05 Thread hce h
y, January 6, 2015 10:28:37 AM UTC+11, hce h wrote: > > After updating to v1.8.2, I've got following error which was running fine > in v1.7. I've got no idea what it stuck about, there is nothing changed > except updating to 1.8.2, what could be possible wrong here? &g

Re: [ansible-project] Pass dictionary variables to the role does not work

2015-01-05 Thread hce h
st not found: ansible_ssh_host', 'failed': True} Thanks. - On Monday, January 5, 2015 6:59:25 PM UTC+11, hce h wrote: > > ve1.7, I am going to update to v1.8.2 and will see how it goes. > > Thanks Tom. > > - j > > On Monday, January 5, 2015 3:15:37 PM UTC+

Re: [ansible-project] Pass dictionary variables to the role does not work

2015-01-05 Thread hce h
t an exception. > > Can you paste the nfs-client task which fails? > > Tom > > > On 5 January 2015 at 05:55, hce h > > wrote: > >> Hi, >> >> I cannot install ansible to one of our NFS server, I tried to fake a >> dictionary variable at followi

[ansible-project] Pass dictionary variables to the role does not work

2015-01-04 Thread hce h
Hi, I cannot install ansible to one of our NFS server, I tried to fake a dictionary variable at following playbook: - { role: nfs-client, nfsServer: { 'ansible_facts': { 'ansible_eth0' : { 'ipv4' : { 'address': 'hce.com' } } } } } The nfs-client tasks uses the variable nfsServer['ansible_facts

Re: [ansible-project] How to use template inside of shell creates conditional check?

2014-11-03 Thread hce h
.crt > > > > On Sun, Nov 2, 2014 at 10:59 PM, hce h > > wrote: > >> Thanks Matt, please see following comments: >> >> On Monday, November 3, 2014 12:44:38 PM UTC+11, Matt Martz wrote: >>> >>> It might help to actually state what the "

Re: [ansible-project] How to use template inside of shell creates conditional check?

2014-11-02 Thread hce h
my_server }}.crt ^ > > Also what version of ansible are you using? > > ansible-1.7-1.el6.noarch On Sunday, November 2, 2014, hce h > wrote: > >> Hi, >> >> The following examples gave me a syntax error, appreciate clues to use >> template in

[ansible-project] How to use template inside of shell creates conditional check?

2014-11-02 Thread hce h
Hi, The following examples gave me a syntax error, appreciate clues to use template inside creates statement. shell: "cp /tmp/{{ my_server }}.crt /etc/{{ my_server }}.crt" args: creates: /etc/{{ my_server }}.crt Thank you. Kind regards, - j -- You received this message because you are sub