--- - name: Install root ssh keys authorized_key: user: root key: "{{ item }}" with_file: - misc.pub - quaid.pub - duck.pub - name: Remove old root keys authorized_key: user: root key: "{{ item }}" with_file: - misc_old.pub