--- ## - name: Register package keys ## # This doesn't work as it creates a "GPG keybox database version 1" file, ## # which is an unsupported filetype for APT ## command: gpg --import --no-default-keyring --keyring /etc/apt/trusted.gpg.d/webmin.gpg ## args: ## stdin: "{{lookup('file', "RPM-GPG-KEY-webmin.asc") + "\n" + file("RPM-GPG-KEY-virtualmin.asc") + "\n" + file("RPM-GPG-KEY-virtualmin-6.asc")}}" ## creates: /etc/apt/trusted.gpg.d/webmin.gpg - name: Register package key D97A3AE911F63C51 (webmin.gpg) command: gpg --dearmor --output /etc/apt/trusted.gpg.d/webmin.gpg args: stdin: "{{lookup('file', 'RPM-GPG-KEY-webmin.asc')}}" creates: /etc/apt/trusted.gpg.d/webmin.gpg ## - name: Register package key (virtualmin.gpg) ## command: gpg --dearmor --output /etc/apt/trusted.gpg.d/virtualmin.gpg ## args: ## stdin: "{{lookup('file', 'RPM-GPG-KEY-virtualmin.asc')}}" ## creates: /etc/apt/trusted.gpg.d/virtualmin.gpg - name: Register package key D9F9010760D62A6B (virtualmin-6.gpg) command: gpg --dearmor --output /etc/apt/trusted.gpg.d/virtualmin-6.gpg args: stdin: "{{lookup('file', 'RPM-GPG-KEY-virtualmin-6.asc')}}" creates: /etc/apt/trusted.gpg.d/virtualmin-6.gpg - name: Register package key 3E570892B9A0B8B7 (virtualmin-7.gpg) command: gpg --dearmor --output /etc/apt/trusted.gpg.d/virtualmin-7.gpg args: stdin: "{{lookup('file', 'RPM-GPG-KEY-virtualmin-7.asc')}}" creates: /etc/apt/trusted.gpg.d/virtualmin-7.gpg ## - name: Register package archive ## copy: ## src: webmin.list ## dest: /etc/apt/sources.list.d/ ## notify: Refresh package archives