Last active
September 23, 2018 19:54
-
-
Save KellerFuchs/d60a46c4722e2d60eee7004f8b3d1f41 to your computer and use it in GitHub Desktop.
Reproducing testcase for apt_key bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/.vagrant | |
/log | |
*.retry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[defaults] | |
inventory = ./.vagrant/provisioners/ansible/inventory | |
log_path = ./log | |
nocows=1 | |
gathering = smart | |
var_compression_level = 9 | |
[ssh_connection] | |
pipelining = True | |
ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: default | |
become: yes | |
pre_tasks: | |
- name: Setup a pre-existing keyring | |
copy: | |
src: deb.torproject.org-keyring.gpg | |
dest: /etc/apt/trusted.gpg.d/ | |
tasks: | |
- # This is the buggy call: | |
# it will fail to update deb.torproject.org-keyring.gpg even though | |
# tor.asc contains a new signing subkey for the reposirory key. | |
apt_key: | |
data: "{{ lookup('file', 'tor.asc') }}" | |
id: A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | |
keyring: /etc/apt/trusted.gpg.d/deb.torproject.org-keyring.gpg | |
- # Setup the repote repository | |
# Fails due to the previous task failing to update the keyring | |
apt_repository: | |
repo: deb https://deb.torproject.org/torproject.org stretch main | |
state: present | |
filename: tor | |
- # Now, apt update fails | |
apt: | |
update_cache: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQENBEqg7GsBCACsef8koRT8UyZxiv1Irke5nVpte54TDtTl1za1tOKfthmHbs2I | |
4D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s+ZiCj0NipOYfGayc+JQTgVhkbbrcuXVmqRvBbvufAMSXW6H62Ns675jVwrB5 | |
xZvJUi5jV4o6fNULzyV1VIrHMo4a7fszLjPrkZMHIxB8wGehn4VkUZiIKJOGP5zy | |
L3cMhHNh46yNABEBAAGJAlsEGAECACYCGwIWIQSjxPD5ecqiLNuo9RLujLyeiG3d | |
iQUCW2fqRQUJFRpotQEpwF0gBBkBAgAGBQJKoO2QAAoJEHSpQbohnsgQtBEH+QH/ | |
xtP9sc9EMB+fDegsf2aDHLT28YpvhfjLWVrYmXRiextcBRiCwLT6khulhA2vk4Tn | |
h22dbhr87hUtuCJZGR5Y4E2ZS99KfAxXcu96Wo6Ki0X665G/QyUxoFYT9msYZzlv | |
0OmbuIaED0p9lRlTlZrsDG969a/d30G8NG0Mv6CH/Sfqtq26eP3ITqHXe1zFveVT | |
MIliBHaWGg9JqHiu/mm2MwUxuQAzLmaCtma5LXkGTUHsUruIdHplnqy7DHb3DC8m | |
IjnVj9dvPrNXv54mxxhTwHkT5EPjFTzGZa6oFavYt+FzwPR67cVQXfz7jh6Gktcq | |
xrgA7KUmUwuaJ+DzGkIJEO6MvJ6Ibd2JyVcH/3+imOYpKAPY7NjDLswbjrqKKcD8 | |
SL5trPd+811ST03U9/PRjoRsYZqGQ9eMg4KN6Rx0lDipTldC7YfqdBP4YidfdsJ/ | |
6MDEOVuzUHewWwHraBVoMI68YG7dD3RMA0/xAqn5QsDEyZHldLEZjq/qXCJAkqqG | |
2th9hnYFlmsvo46vW78+jI0P6MW/qAxiJ5eAvNf0vT1pP4MagOPT8NZ6zYTJNeQP | |
E3kiSN9wFMEYcoJ5SwyfOHQqRrZy96XDBCF3F7BfrgcN0h+IQ4z9BSa8yBxcWfDJ | |
iuhgO/Ks2JGsrPBAhOkSUbdpxsb2/MzASgbiN00wsGsEejVHxvX7/iOE3rM= | |
=Kjcs | |
-----END PGP PUBLIC KEY BLOCK----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "debian/contrib-testing64" | |
config.ssh.insert_key = false | |
config.vm.provision "ansible" do |ansible| | |
ansible.playbook = "test.yml" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment