--- - name: Install python3-cryptography library become: true apt: name: python3-cryptography state: present - name: Create directories for storing certificates become: true file: path: "/etc/{{ item.name }}" state: directory owner: root group: root mode: "{{ item.mode }}" loop: - name: ssl mode: u=rwx,g=rx,o=rx - name: ssl/private mode: u=rwx,g=,o= - name: ssl/csr mode: u=rwx,g=rx,o=rx - name: ssl/certs mode: u=rwx,g=rx,o=rx ...