File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ # Currently the pulp_deb plugin in Pulp does not support certain types of
3
+ # content, including i18n files and command-not-found indices. This breaks APT
4
+ # when the command-not-found is installed. This playbook can be used to
5
+ # uninstall the package, prior to running any other APT commands. It may be
6
+ # installed as a hook to the 'host configure' commands.
7
+ # See https://github.com/pulp/pulp_deb/issues/419
8
+ # FIXME: If used as a hook, this playbook matches all hosts, so will run
9
+ # against the seed, even when running 'overcloud host configure'. Depending on
10
+ # the stage of deployment, some hosts may be unreachable. This could be fixed
11
+ # by implementing this playbook separately for each group.
12
+ - name : Purge command-not-found package
13
+ hosts : seed-hypervisor:seed:overcloud:infra-vms
14
+ gather_facts : false
15
+ vars :
16
+ ansible_user : " {{ bootstrap_user }}"
17
+ # We can't assume that a virtualenv exists at this point, so use the system
18
+ # python interpreter.
19
+ ansible_python_interpreter : /usr/bin/python3
20
+ # Work around no known_hosts entry on first boot.
21
+ ansible_ssh_common_args : " -o StrictHostKeyChecking=no"
22
+ tasks :
23
+ - name : Purge command-not-found package
24
+ package :
25
+ name :
26
+ - command-not-found
27
+ - python3-command-not-found
28
+ purge : true
29
+ state : absent
30
+ become : true
31
+ failed_when : false
32
+ ignore_unreachable : true
33
+ when : ansible_facts.os_family == "Debian"
You can’t perform that action at this time.
0 commit comments