Skip to content

Instantly share code, notes, and snippets.

@trainman419
Created September 1, 2017 02:59
Show Gist options
  • Save trainman419/f0bf0532fd0105c59f27c6ac0b09257d to your computer and use it in GitHub Desktop.
Save trainman419/f0bf0532fd0105c59f27c6ac0b09257d to your computer and use it in GitHub Desktop.
Ansible apt marking bug.
---
- hosts: localhost
tasks:
- block:
- name: "install_parent"
apt:
name: "{{ item }}"
install_recommends: no
state: present
with_items:
"libcaca-dev"
- name: "install_child"
apt:
name: "{{ item }}"
install_recommends: no
state: present
with_items:
"libslang2-dev"
- name: "uninstall_parent"
apt:
name: "{{ item }}"
install_recommends: no
state: absent
autoremove: yes
purge: yes
with_items:
"libcaca-dev"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment