[ansible-project] Re: Send commands via CLI over SSH to unsupported network device

2020-01-19 Thread Rudi Močnik
Hi

I've got a similar issues connecting to a network device running KlasOS. I 
am not sure which connection type to use to make this work. I've tried with 
the code that @sign@L posted but no luck. In sign@L's code I see he is 
using "connection: local" and "ansible_connection=ssh". Isn't this the same 
thing? It picks the connection module to use. Which one is it using in this 
case; local or ssh? Reading the docs on the "local" connection module is 
states "This connection plugin allows ansible to execute tasks on the 
Ansible ‘controller’ instead of on a remote host." 
Can you list the output of you playbook run with -vvv. I wonder how it 
looks compared to mine. To my understanding if I use local connection 
module I should be doing something like this in the tasks:

tasks:

  - name: Connect to KlasOS

raw: 'username@x.x.x.x'

and then use expect.

Can someone please shed some light into this.

Thanks


On Monday, 17 September 2018 12:57:02 UTC+2, sign@L wrote:
>
> I need to send commands to 600 network devices (they are Fortinet Access 
> Points) that have SSH enabled. Python is not available on the device, so I 
> need to use something like network_cli.
> I've tried all the ansible_network_os options (ios, nxos, vyos, eos...), 
> but none work.
>
> Is there a way of sending simple commands to a device without the 
> requirement to specify & verify the device OS?
> I don't care about gathering facts beforehand.
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/17bb4734-3bda-46f3-9a5e-bad024302ce5%40googlegroups.com.


[ansible-project] How to setup multiple jumpbox with Ansible AWX

2020-01-19 Thread Blacksensei
Hi Team, 

I have been heavily using Ansible Core for the past 4 years and totally 
loved it. We started a project in our office allowing everybody in dev team 
to start doing deployment themselves. We now need to migrate a number of 
things to be able to work on AWX while some of us will still continue to 
work with ansible core. So we run workload in about 6 AWS accounts. We own 
3 and manage 3 for clients. Based on that there are multiple jumpboxes to 
set up for certain playbooks to run. We use a awscli credentials profiles a 
lot and below is our folder structure :
.
├── inventory
├── playbook_vars
├── playbooks
├── plugins
├── roles

Playbooks are organised in projects and below is a typical playbook:

.
├── inventory
├── production
└── stage

In the inventory we have:

.
├── ec2.ini
├── ec2.py
└── group_vars
├── tag_Name_main_proja_jumpbox
├── tag_Name_main_proja_prod_mongo
├── tag_Name_main_proja_prod_mongo_arb
└── tag_Name_main_proja_uat_mongo

inside every group_vars file you have commands similar to:

ansible_ssh_common_args: '-o ProxyCommand="ssh -o StrictHostKeyChecking=no 
-i {{ hostvars.localhost.reg_target_ssh_key }} -W %h:%p -q ubuntu@{{ 
hostvars.localhost.reg_jumpbox_facts.instances.0.public_ip_address }}"'

The mongo db are in a private subnet so the ec2.ini is configured to return 
private_ip_address etc.

To run a playbook successfully to configure the mongodbs in private 
subnets, this command is used:
AWS_PROFILE=clienta ansible-playbook -i 
~/configuration-management-ansible/playbooks/projecta/inventory -u ubuntu 
--private-key ~/creds/ProjectaProductionOps.pem 
~/configuration-management-ansible/playbooks/projecta/production/full_setup_playbook_ireland.yml
 
--vault-password-file ~/creds/ansible-vault/projecta/production.password 
--skip-tags facts


I am struggling to see usage of AWS_PROFILES in AWX, I am not sure if I 
should be installing awscli on the AWX awx_task docker container. These are 
in git and pulled as project in AWX. I have added a that playbook inventory 
as inventory in AWX but the sync failed because it lacks AWS 
credentials(can't seem to find credential field for file inventories ). I 
have already added the inventories for all the 6 AWS accounts but I need to 
attach those credentials to playbook level credentials in order for my 
custom ec2.ini to affect the inventory to return private ips instead.

How to get the similar functionality in AWX?

Thanks

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/568f7484-360d-47a5-9ca5-11d65c671190%40googlegroups.com.


[ansible-project] Troubleshooting a "Failed to Authenticate: Authentication failed." message for an ios_command module

2020-01-19 Thread Waseem Karim
Hi all,

I am very new to ansible and I was just trying to create a playbook to do a 
show run on my stratix switch (stratix 5700). 

However, no matter what I try, I keep getting the following message:

pcs | FAILED! => {
"changed": false, 
"msg": "Failed to authenticate: Authentication failed."
}

I have put the correct username and password in the group_vars folder.
So my hierachy goes ~/ansible/group_vars/ios
And inside there i have 
ansible_connection: network_cli
ansible_network_os: ios
ansible_user: 
ansible_ssh_password: 
And I am 100% sure that the username and password is correct

Can someone please help with with this issue.

Thanks
Waseem


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8ba43e37-d887-4b1c-903f-0097430a4dc5%40googlegroups.com.


[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 offending line appears to be:


   - name: Copy file config.php
 ^ here




This is my ansible 

---
 - hosts: all
   remote_user: sandy
   become: true

   tasks:
 - name: install openldap
   apt: name=slapd update_cache=yes

 - name: install openldap
   apt: name=ldap-utils update_cache=yes

 - name: install phpldapadmin
   apt: name=phpldapadmin update_cache=yes


 - name: check openldap is running
   service: name=slapd state=started

 - name: Enabling LDAPS
   shell: SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"

 - name: Set a password for the admin user
   ldap_passwd:
 dn: cn=admin,dc=abagile,dc=com
 passwd: "{{ vault_secret }}"

 - name: Setting passwords in admin
   ldap_passwd:
  dn: "{{ item.key }}"
  passwd: "{{ item.value }}"
   with_dict:
  alice: alice123123
  bob:   "|30b!"
  admin: "{{ vault_secret }}"

 - name: Testing the above LDAPS config
   shell: ldapsearch -d 9 -D "ou=users,dc=abagile,dc=com" \ -w password 
-b "dc=ababile,dc=com" -H "ldaps://ldaptest.abagile.com" "objectCllass=*"

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c3e74b5e-a5b3-4a23-b0a0-bcf6dd3c049e%40googlegroups.com.


[ansible-project] Re: openldap for ubuntu

2020-01-19 Thread Sandy Hung
sorry error message is

fatal: [192.168.1.153]: FAILED! => {"msg": "The task includes an option 
with an undefined variable. The e'vault_secret' is undefined\n\nThe error 
appears to be in '/home/sandy/ldapinstall.yml': line 23, column \nbe 
elsewhere in the file depending on 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 
> 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 offending line appears to be:
>
>
>- name: Copy file config.php
>  ^ here
>
>
>
>
> This is my ansible 
>
> ---
>  - hosts: all
>remote_user: sandy
>become: true
>
>tasks:
>  - name: install openldap
>apt: name=slapd update_cache=yes
>
>  - name: install openldap
>apt: name=ldap-utils update_cache=yes
>
>  - name: install phpldapadmin
>apt: name=phpldapadmin update_cache=yes
>
>
>  - name: check openldap is running
>service: name=slapd state=started
>
>  - name: Enabling LDAPS
>shell: SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"
>
>  - name: Set a password for the admin user
>ldap_passwd:
>  dn: cn=admin,dc=abagile,dc=com
>  passwd: "{{ vault_secret }}"
>
>  - name: Setting passwords in admin
>ldap_passwd:
>   dn: "{{ item.key }}"
>   passwd: "{{ item.value }}"
>with_dict:
>   alice: alice123123
>   bob:   "|30b!"
>   admin: "{{ vault_secret }}"
>
>  - name: Testing the above LDAPS config
>shell: ldapsearch -d 9 -D "ou=users,dc=abagile,dc=com" \ -w 
> password -b "dc=ababile,dc=com" -H "ldaps://ldaptest.abagile.com" 
> "objectCllass=*"
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b7ed4353-ff1c-4f52-b475-c3f8782f4e5c%40googlegroups.com.


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

2020-01-19 Thread Stefan Hornburg (Racke)
On 1/20/20 7:42 AM, Sandy Hung wrote:
> sorry error message is
> 
> fatal: [192.168.1.153]: FAILED! => {"msg": "The task includes an option with 
> an undefined variable. The e'vault_secret'
> is undefined\n\nThe error appears to be in '/home/sandy/ldapinstall.yml': 
> line 23, column \nbe elsewhere in the file
> depending on 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.

You have to define the variable vault_secret.

Regards
Racke

> 
> 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 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 offending line appears to be:
> 
> 
>    - name: Copy file config.php
>      ^ here
> 
> 
> 
> 
> This is my ansible 
> 
> ---
>  - hosts: all
>    remote_user: sandy
>    become: true
> 
>    tasks:
>      - name: install openldap
>        apt: name=slapd update_cache=yes
> 
>      - name: install openldap
>        apt: name=ldap-utils update_cache=yes
> 
>      - name: install phpldapadmin
>        apt: name=phpldapadmin update_cache=yes
> 
> 
>      - name: check openldap is running
>        service: name=slapd state=started
> 
>      - name: Enabling LDAPS
>        shell: SLAPD_SERVICES="ldap://127.0.0.1:389/ 
>  ldaps:/// ldapi:///"
> 
>      - name: Set a password for the admin user
>        ldap_passwd:
>          dn: cn=admin,dc=abagile,dc=com
>          passwd: "{{ vault_secret }}"
> 
>      - name: Setting passwords in admin
>        ldap_passwd:
>           dn: "{{ item.key }}"
>           passwd: "{{ item.value }}"
>        with_dict:
>           alice: alice123123
>           bob:   "|30b!"
>           admin: "{{ vault_secret }}"
> 
>      - name: Testing the above LDAPS config
>        shell: ldapsearch -d 9 -D "ou=users,dc=abagile,dc=com" \ -w 
> password -b "dc=ababile,dc=com" -H
> "ldaps://ldaptest.abagile.com " 
> "objectCllass=*"
> 
> -- 
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/b7ed4353-ff1c-4f52-b475-c3f8782f4e5c%40googlegroups.com
> .


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c2020ee8-a419-6b8d-dd39-101267dda087%40linuxia.de.


signature.asc
Description: OpenPGP digital signature


[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 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 offending line appears to be:
>
>
>- name: Copy file config.php
>  ^ here
>
>
>
>
> This is my ansible 
>
> ---
>  - hosts: all
>remote_user: sandy
>become: true
>
>tasks:
>  - name: install openldap
>apt: name=slapd update_cache=yes
>
>  - name: install openldap
>apt: name=ldap-utils update_cache=yes
>
>  - name: install phpldapadmin
>apt: name=phpldapadmin update_cache=yes
>
>
>  - name: check openldap is running
>service: name=slapd state=started
>
>  - name: Enabling LDAPS
>shell: SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"
>
>  - name: Set a password for the admin user
>ldap_passwd:
>  dn: cn=admin,dc=abagile,dc=com
>  passwd: "{{ vault_secret }}"
>
>  - name: Setting passwords in admin
>ldap_passwd:
>   dn: "{{ item.key }}"
>   passwd: "{{ item.value }}"
>with_dict:
>   alice: alice123123
>   bob:   "|30b!"
>   admin: "{{ vault_secret }}"
>
>  - name: Testing the above LDAPS config
>shell: ldapsearch -d 9 -D "ou=users,dc=abagile,dc=com" \ -w 
> password -b "dc=ababile,dc=com" -H "ldaps://ldaptest.abagile.com" 
> "objectCllass=*"
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/09858b91-a31e-414e-91d3-59555df8be54%40googlegroups.com.


Re: [ansible-project] Ansible passwordless login not working

2020-01-19 Thread Yehuda Pinhas
Hi again.
Anyone have any idea?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e669ab37-a0b7-4508-a129-e771ca18926c%40googlegroups.com.


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

2020-01-19 Thread Stefan Hornburg (Racke)
On 1/20/20 7:58 AM, Sandy Hung wrote:
> How to define  the variable vault_secret?
> thanks.

Well you should know what the value of this variable is ...

There are many places where you can define variables:

https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html

Regards
  Racke

> 
> 
> 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 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 offending line appears to be:
> 
> 
>    - name: Copy file config.php
>      ^ here
> 
> 
> 
> 
> This is my ansible 
> 
> ---
>  - hosts: all
>    remote_user: sandy
>    become: true
> 
>    tasks:
>      - name: install openldap
>        apt: name=slapd update_cache=yes
> 
>      - name: install openldap
>        apt: name=ldap-utils update_cache=yes
> 
>      - name: install phpldapadmin
>        apt: name=phpldapadmin update_cache=yes
> 
> 
>      - name: check openldap is running
>        service: name=slapd state=started
> 
>      - name: Enabling LDAPS
>        shell: SLAPD_SERVICES="ldap://127.0.0.1:389/ 
>  ldaps:/// ldapi:///"
> 
>      - name: Set a password for the admin user
>        ldap_passwd:
>          dn: cn=admin,dc=abagile,dc=com
>          passwd: "{{ vault_secret }}"
> 
>      - name: Setting passwords in admin
>        ldap_passwd:
>           dn: "{{ item.key }}"
>           passwd: "{{ item.value }}"
>        with_dict:
>           alice: alice123123
>           bob:   "|30b!"
>           admin: "{{ vault_secret }}"
> 
>      - name: Testing the above LDAPS config
>        shell: ldapsearch -d 9 -D "ou=users,dc=abagile,dc=com" \ -w 
> password -b "dc=ababile,dc=com" -H
> "ldaps://ldaptest.abagile.com " 
> "objectCllass=*"
> 
> -- 
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/09858b91-a31e-414e-91d3-59555df8be54%40googlegroups.com
> .


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/74f08ff8-b11c-ba4f-99a3-283bc9373100%40linuxia.de.


signature.asc
Description: OpenPGP digital signature


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 the value of this variable is ... 
>
> There are many places where you can define variables: 
>
> https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html 
>
> Regards 
>   Racke 
>
> > 
> > 
> > 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 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 offending line appears to be: 
> > 
> > 
> >- name: Copy file config.php 
> >  ^ here 
> > 
> > 
> > 
> > 
> > This is my ansible  
> > 
> > --- 
> >  - hosts: all 
> >remote_user: sandy 
> >become: true 
> > 
> >tasks: 
> >  - name: install openldap 
> >apt: name=slapd update_cache=yes 
> > 
> >  - name: install openldap 
> >apt: name=ldap-utils update_cache=yes 
> > 
> >  - name: install phpldapadmin 
> >apt: name=phpldapadmin update_cache=yes 
> > 
> > 
> >  - name: check openldap is running 
> >service: name=slapd state=started 
> > 
> >  - name: Enabling LDAPS 
> >shell: SLAPD_SERVICES="ldap://127.0.0.1:389/ <
> http://127.0.0.1:389/> ldaps:/// ldapi:///" 
> > 
> >  - name: Set a password for the admin user 
> >ldap_passwd: 
> >  dn: cn=admin,dc=abagile,dc=com 
> >  passwd: "{{ vault_secret }}" 
> > 
> >  - name: Setting passwords in admin 
> >ldap_passwd: 
> >   dn: "{{ item.key }}" 
> >   passwd: "{{ item.value }}" 
> >with_dict: 
> >   alice: alice123123 
> >   bob:   "|30b!" 
> >   admin: "{{ vault_secret }}" 
> > 
> >  - name: Testing the above LDAPS config 
> >shell: ldapsearch -d 9 -D "ou=users,dc=abagile,dc=com" \ -w 
> password -b "dc=ababile,dc=com" -H 
> > "ldaps://ldaptest.abagile.com " 
> "objectCllass=*" 
> > 
> > -- 
> > 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...@googlegroups.com   ansible-project+unsubscr...@googlegroups.com >. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/09858b91-a31e-414e-91d3-59555df8be54%40googlegroups.com
>  
> > <
> https://groups.google.com/d/msgid/ansible-project/09858b91-a31e-414e-91d3-59555df8be54%40googlegroups.com?utm_medium=email&utm_source=footer>.
>  
>
>
>
> -- 
> Ecommerce and Linux consulting + Perl and web application programming. 
> Debian and Sympa administration. Provisioning with Ansible. 
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9dc79194-9e1d-4e2e-8022-79889a77874a%40googlegroups.com.


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

2020-01-19 Thread Mark Anthony Garcia
You can read this documentation on ansible.

https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html

Regards,
Mark Garcia

On Mon, Jan 20, 2020 at 8:23 AM Sandy Hung  wrote:

> 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 the value of this variable is ...
>>
>> There are many places where you can define variables:
>>
>>
>> https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html
>>
>> Regards
>>   Racke
>>
>> >
>> >
>> > 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 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 offending line appears to be:
>> >
>> >
>> >- name: Copy file config.php
>> >  ^ here
>> >
>> >
>> >
>> >
>> > This is my ansible
>> >
>> > ---
>> >  - hosts: all
>> >remote_user: sandy
>> >become: true
>> >
>> >tasks:
>> >  - name: install openldap
>> >apt: name=slapd update_cache=yes
>> >
>> >  - name: install openldap
>> >apt: name=ldap-utils update_cache=yes
>> >
>> >  - name: install phpldapadmin
>> >apt: name=phpldapadmin update_cache=yes
>> >
>> >
>> >  - name: check openldap is running
>> >service: name=slapd state=started
>> >
>> >  - name: Enabling LDAPS
>> >shell: SLAPD_SERVICES="ldap://127.0.0.1:389/ <
>> http://127.0.0.1:389/> ldaps:/// ldapi:///"
>> >
>> >  - name: Set a password for the admin user
>> >ldap_passwd:
>> >  dn: cn=admin,dc=abagile,dc=com
>> >  passwd: "{{ vault_secret }}"
>> >
>> >  - name: Setting passwords in admin
>> >ldap_passwd:
>> >   dn: "{{ item.key }}"
>> >   passwd: "{{ item.value }}"
>> >with_dict:
>> >   alice: alice123123
>> >   bob:   "|30b!"
>> >   admin: "{{ vault_secret }}"
>> >
>> >  - name: Testing the above LDAPS config
>> >shell: ldapsearch -d 9 -D "ou=users,dc=abagile,dc=com" \ -w
>> password -b "dc=ababile,dc=com" -H
>> > "ldaps://ldaptest.abagile.com "
>> "objectCllass=*"
>> >
>> > --
>> > 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...@googlegroups.com > ansible-project+unsubscr...@googlegroups.com>.
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/ansible-project/09858b91-a31e-414e-91d3-59555df8be54%40googlegroups.com
>> > <
>> https://groups.google.com/d/msgid/ansible-project/09858b91-a31e-414e-91d3-59555df8be54%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>
>>
>>
>> --
>> Ecommerce and Linux consulting + Perl and web application programming.
>> Debian and Sympa administration. Provisioning with Ansible.
>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9dc79194-9e1d-4e2e-8022-79889a77874a%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGFwMxrvkUe%2BNPd3eySJLNpfvsmDU%2B_zySme_ZJfFJGpxJEuNw%40mail.gmail.com.