64d0d39d0b
The add-launchpad-credentials role installs the distro's python-launchpadlib package which, for the distros carrying that package at all, sets it up for Python 2.7. At this point Ubuntu has dropped the python-launchpadlib package entirely from their latest LTS release and Debian will do the same in their next release, but they have also carried a python3-launchpadlib package for years. Switch to it so this will work on newer systems. Change-Id: I92421cae32bf2da5851144337820685c79ec19ee
18 lines
317 B
YAML
18 lines
317 B
YAML
- name: Ensure launchpadlib directory
|
|
file:
|
|
path: ~/.launchpadlib
|
|
state: directory
|
|
mode: 0700
|
|
|
|
- name: Write credentials
|
|
template:
|
|
dest: ~/.launchpadlib/creds
|
|
mode: 0600
|
|
src: creds.j2
|
|
|
|
- name: Install launchpadlib
|
|
package:
|
|
name: python3-launchpadlib
|
|
state: present
|
|
become: yes
|