setup-Ubuntu.yml 316 B

1234567891011
  1. ---
  2. - name: Add PPA for Nginx.
  3. apt_repository: repo='ppa:nginx/{{ nginx_ppa_version }}' state=present update_cache=yes
  4. register: added_ppa
  5. when: nginx_use_ppa
  6. - name: ensure nginx is not installed when the ppa was just added
  7. apt:
  8. pkg: nginx
  9. state: absent
  10. when: added_ppa.changed