[ansible-project] AWS EFS

2020-08-11 Thread Sandy Hung
Hi all, I run efs playbook ,but show error message, I don't what happen I run other machine is ok , it's python version problem? The full traceback is: Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1597129962.45-1441-139369601493398/AnsiballZ_efs.py", line 102, in

[ansible-project] rysnc ansible

2020-08-04 Thread Sandy Hung
I have synchronize playbook but show error message this my playbook - hosts: localhost connection: local gather_facts: no tasks: - name: push local folder to remote host synchronize: src: /tmp/client/ dest: /tmp/test/ mode: push

[ansible-project] cisco ios connect ssh error

2020-07-07 Thread Sandy Hung
I connect cisco switch run playbook show error msg please help thanks. fatal: [tpesw-01]: FAILED! => { "ansible_facts": {}, "changed": false, "failed_modules": { "ios_facts": { "exception": "WARNING: The below traceback may *not* be related to the actual failure.\n

[ansible-project] ansible letsencrypt

2020-04-28 Thread Sandy Hung
Dear all: I run ansible letsencrypt show error message please help me thanks. TASK [ansible-letsencrypt : update the apt cache] ** task path: /home/ldap/.ansible/roles/ansible-letsencrypt/tasks/ubuntu-xenial.yml:2 skipping: [localhost] => { "changed": false,

[ansible-project] fortigate backup cfg

2020-04-20 Thread Sandy Hung
Dear All: I have some problem, I ran ansible fortigate backup cfg it's file have in path but ansible have error msg { "msg": "Failed while reading configuration backup"} I don't know what happened This is my ansible --- - hosts: localhost gather_facts: no vars_files: - fortikey.yml

[ansible-project] aws efs mount connection time out

2020-04-01 Thread Sandy Hung
Hi i try inbound rule add nfs port 2049 to scertiy group id but still show error connection time out no idea how to solved - name: mount efs volume mount: path: "/home/ec2-user/{{ efs_vol_name }}" src: "{{ efs_fact_id }}.efs.ap-southeast-1.amazonaws.com:/"

[ansible-project] Re: set_fact moudle error ansible

2020-03-31 Thread Sandy Hung
thank your help I have problem mount efs volume show msg "msg": "Error mounting /home/ec2-user/test_efs: mount.nfs4: Connection timed out\n" I have add to hosts On Tuesday, March 31, 2020 at 11:55:10 AM UTC+8, Sandy Hung wrote: > > Hi > > error

[ansible-project] set_fact moudle error ansible

2020-03-30 Thread Sandy Hung
Hi error msg fatal: [localhost]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'ansible_facts'\n\nThe error appears to be in '/home/ldap/createefs.yml': line 37, column 8, but may\nbe elsewhere in the file

[ansible-project] aws mount efs volume - ansible

2020-03-30 Thread Sandy Hung
Hi I have some problem this msg "Error mounting /home/ec2-user/test_efs: mount.nfs4: Failed to resolve server fs-a41235e5.efs.ap-southeast-1.amazonaws.com: Name or service not known\n" } my ansible --- - hosts: localhost become: yes gather_facts: yes vars: aws_profile:

[ansible-project] ansible nfsclient error

2020-03-30 Thread Sandy Hung
Dear all: I can connect to this ip and share folder tasks: - name: Ensure NFS Common is installed apt: name=nfs-common update_cache=yes - name: Create mountable dir file: path=/nfs state=directory mode=777 owner=sandy group=sandy - name: set mountpoints

[ansible-project] nfs client ansible

2020-03-27 Thread Sandy Hung
dear all: fatal: [192.168.1.120]: FAILED! => { "changed": false, "invocation": { "module_args": { "dump": "0", "fstype": "nfs", "opts": "defaults,nobootwait", "passno": "2", "path": "/nfs", "sate": "mounted",

[ansible-project] Re: Create AWS EFS

2020-03-25 Thread Sandy Hung
version = 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] On Wednesday, March 25, 2020 at 3:07:30 PM UTC+8, Sandy Hung wrote: > > Dear All: > > I have create efs ansible , I have install boto3 > this is show error msg > > this is my ansible > --- > - hosts: local

[ansible-project] Create AWS EFS

2020-03-25 Thread Sandy Hung
Dear All: I have create efs ansible , I have install boto3 this is show error msg this is my ansible --- - hosts: localhost connection: local gather_facts: no vars_files: - ec2key.yml tasks: - name: Create EFS efs: state: present

[ansible-project] no hosts matched

2020-03-11 Thread Sandy Hung
Dear all: I have been normal before but this error message appeared in a few week can you help me. thanks. sandy@test-VirtualBox:~$ sudo ansible-playbook nfsclient.yml -i myinventory [WARNING]: Unable to parse /home/sandy/myinventory as an inventory source [WARNING]: No inventory was parsed,

[ansible-project] aws ec2 attach snapshot ansible playbook error message

2020-02-10 Thread Sandy Hung
Dear all: I have some problem I don't know I attach ebs from snapshot but attach show error message please help thanks. fatal: [localhost]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: list object has no element 0\n\nThe error appears to be in

[ansible-project] aws ec2 attach ebs volume from snapshot error

2020-02-10 Thread Sandy Hung
Dear all: I have some problem I don't know I attach ebs from snapshot but attach show error message please help thanks. fatal: [localhost]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: list object has no element 0\n\nThe error appears to be in

[ansible-project] aws ece dettach Volume error

2020-02-06 Thread Sandy Hung
dear all: please help me how to detach volume - name: Detach a Volume ec2_vol: id: vol-0a75b01a93b9e6778 region: "{{ region }}" instance: None PLAY [localhost] ***

[ansible-project] Re: aws ec2 add new ebs volume error

2020-02-06 Thread Sandy Hung
so I need use module in add volume? On Friday, February 7, 2020 at 11:26:11 AM UTC+8, Sandy Hung wrote: > > Dear all: > > please help me thanks. > > - name: Create New EBS volume > ec2_vol: >aws_access_key: "{{ aws_access_key }}" >

[ansible-project] aws ec2 add new ebs volume error

2020-02-06 Thread Sandy Hung
Dear all: please help me thanks. - name: Create New EBS volume ec2_vol: aws_access_key: "{{ aws_access_key }}" aws_secret_key: "{{ aws_secret_key }}" instance_id: "{{ instance_id }}" volume_size: "{{ volume_size }}" device_name: "{{ device_name}}"

[ansible-project] ansible playbook error

2020-01-22 Thread Sandy Hung
ERROR! unexpected parameter type in action: The error appears to be in '/home/sandy/phpldapadmin.yml': line 8, column 6, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: install phpopenldap ^ here

Re: [ansible-project] ansible error message

2020-01-21 Thread Sandy Hung
d policy: allow On Tuesday, January 21, 2020 at 5:24:29 PM UTC+8, Stefan Hornburg (Racke) wrote: > > On 1/21/20 10:09 AM, Sandy Hung wrote: > > Dear All: > > > > I don't know this error is? > > can hlep me thanks. > > > > > > ERROR! conflict

[ansible-project] ansible error message

2020-01-21 Thread Sandy Hung
Dear All: I don't know this error is? can hlep me thanks. ERROR! conflicting action statements: lineinfile, roles The error appears to be in '/home/sandy/phpldapadmin.yml': line 54, column 6, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears

[ansible-project] Can't contact LDAP server

2020-01-20 Thread Sandy Hung
Dear All: I run command ldapsearch not contact LDAP server but try open port 636 can't open it please help me thanks. ldapsearch -d 9 -D "cn=test,ou=users,dc=,dc=com"\ -w password -b "dc=xxx,dc=com" -H "ldaps://ldaptest.xxx.com" "objectClass=*"

[ansible-project] Re: openldap for ubuntu

2020-01-20 Thread Sandy Hung
, "ldap_prepare_socket: 3", "ldap_connect_to_host: Trying 192.168.1.153:636", "ldap_pvt_connect: fd: 3 tm: -1 async: 0", "attempting to connect: ", "connect errno: 111", "ldap_close_socket: 3", "ldap_err2string", "ldap_sasl_bind(SI

Re: [ansible-project] Re: openldap for ubuntu

2020-01-19 Thread Sandy Hung
yes,but learning ansible only 2 week so, I don;t how to define variables. Stefan Hornburg (Racke)於 2020年1月20日星期一 UTC+8下午3時08分54秒寫道: > > On 1/20/20 7:58 AM, Sandy Hung wrote: > > How to define the variable vault_secret? > > thanks. > > Well you should know what th

[ansible-project] Re: openldap for ubuntu

2020-01-19 Thread Sandy Hung
How to define the variable vault_secret? thanks. Sandy Hung於 2020年1月20日星期一 UTC+8下午2時38分35秒寫道: > > I have problem run openldap show error message, how to solved this problem > thanks. > > ERROR! conflicting action statements: copy, force > > The error appears

[ansible-project] Re: openldap for ubuntu

2020-01-19 Thread Sandy Hung
n the exact syntax problem.\n\nThe offending line appears to be:\n\name: Set a password for the admin user\n ^ here\n"} please help me thanks. Sandy Hung於 2020年1月20日星期一 UTC+8下午2時38分35秒寫道: > > I have problem run openldap show error message, how to solved this problem > thank

[ansible-project] openldap for ubuntu

2020-01-19 Thread Sandy Hung
I have problem run openldap show error message, how to solved this problem thanks. ERROR! conflicting action statements: copy, force The error appears to be in '/home/sandy/phpldapadmin.yml': line 68, column 6, but may be elsewhere in the file depending on the exact syntax problem. The