---

- name: Install common utils
  apt:
    name: "{{item}}"
    state: present
  with_items:
    - htop
    - python-software-properties
  become: true
  tags:
    - common

---

- name: Install common utils
  apt:
    name: "{{item}}"
    state: present
  with_items:
    - htop
    - python-software-properties
  become: true
  tags:
    - common

- name: Install Python packages for validating SSL certificates with SNI
  pip:
    name: supervisor
  with_items:
    - ndg-httpsclient
    - pyasn1
    - pyOpenSSL
    - urllib3
  become: true
  tags:
    - common

Install Python packages for validating SSL certificates with SNI
Install Python packages for validating SSL certificates with SNI

Otherwise we get:

"msg": "Failed to validate the SSL certificate for distfiles.macports.org:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine or you can install the `urllib3`, `pyOpenSSL`, `ndg-httpsclient`, and `pyasn1` python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible. The exception msg was: hostname 'distfiles.macports.org' doesn't match either of '*.netdna-ssl.com', 'netdna-ssl.com'."
