--- - name: ssh-keys copy: src: ~/ssh-keys/ dest: ~/ssh-keys mode: u=rw,g=,o= - name: ssh auto config template: src: ssh.config.j2 dest: ~/.ssh/config.auto - name: include ssh auto config lineinfile: path: ~/.ssh/config line: Include config.auto insertbefore: BOF create: true