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.

Reply via email to