Skip to content
Snippets Groups Projects
Select Git revision
  • ec2c0c4b59f479be11c9f2631f1ac2111a927d47
  • master default protected
  • v1.14.7
  • v1.14.6
  • v1.14.5
  • v1.14.4
  • v1.14.3
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.13.2
  • v1.13.1
  • v1.13.0
  • v1.12.1
  • v1.12.0
  • v1.11.1
  • v1.11.0
  • v1.10.0
  • v1.9.2
  • v1.9.1
  • v1.9.0
  • v1.8.4
22 results

README-config.md

Blame
    • jh23453's avatar
      b53f2a08
      Login shell is called defaultshell and not defaultlogin · b53f2a08
      jh23453 authored
      The example didn't work for me with the following error (on freeipa 4.9.8):
      
      TASK [display default login shell] **************************************************************************************************
      fatal: [freeipa1.example.org]: FAILED! => {"msg": "
      The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'defaultlogin'
      
      Using the correct variable defaultshell works for me.
      Login shell is called defaultshell and not defaultlogin
      jh23453 authored
      The example didn't work for me with the following error (on freeipa 4.9.8):
      
      TASK [display default login shell] **************************************************************************************************
      fatal: [freeipa1.example.org]: FAILED! => {"msg": "
      The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'defaultlogin'
      
      Using the correct variable defaultshell works for me.
    env_setup.yml 1.31 KiB
    ---
      # Tasks executed to ensure a sane environment to test IPA Vault module.
      - name: Ensure environment is clean.
        import_tasks: env_cleanup.yml
    
      - name: Create private/public key pair.
        shell:
          cmd: |
            openssl genrsa -out "{{ item }}private.pem" 2048
            openssl rsa -in "{{ item }}private.pem" -outform PEM -pubout -out "{{ item }}public.pem"
            base64 "{{ item }}public.pem" -w5000 > "{{ item }}public.b64"
            base64 "{{ item }}private.pem" -w5000 > "{{ item }}private.b64"
        delegate_to: localhost
        become: no
        with_items:
        - A_
        - B_
    
      - name: Copy files to target host.
        copy:
          src: "{{ playbook_dir }}/{{ item }}"
          dest: "{{ ansible_env.HOME }}/{{ item }}"
        with_items:
        - A_private.pem
        - A_public.pem
        - B_private.pem
        - B_public.pem
        - A_private.b64
        - A_public.b64
        - B_private.b64
        - B_public.b64
        - password.txt
        - in.txt
    
      - name: Ensure vaultgroup exists.
        ipagroup:
          ipaadmin_password: SomeADMINpassword
          name: vaultgroup
    
      - name: Ensure testing users exist.
        ipauser:
          ipaadmin_password: SomeADMINpassword
          users:
          - name: user01
            first: First
            last: Start
          - name: user02
            first: Second
            last: Middle
          - name: user03
            first: Third
            last: Last