- name: slackware - system-wide confs ansible.builtin.copy: src: "templates/{{item}}" dest: /etc/ mode: 0644 with_items: - nologin - shrc diff: true # todo - source /etc/shrc from /etc/profile - name: slackware - log helper script ansible.builtin.copy: src: templates/log_slackware dest: /root/log mode: 0700 diff: true - name: slackware - root .ssh folder ansible.builtin.file: path: /root/.ssh/ state: directory mode: 0700 - name: slackware - root authorized_keys ansible.builtin.blockinfile: path: /root/.ssh/authorized_keys block: "{{ lookup('file', 'templates/blockinfile_root_authorized_keys') }}" prepend_newline: true append_newline: true create: true mode: 0600 when: "lookup('file', 'templates/blockinfile_root_authorized_keys') != []" diff: true