unifi/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 03 Apr 2023 13:20:18 -0500
changeset 211 9e2b2cc6ccf1
parent 199 9aa5f284ea10
child 223 de03976c2df1
permissions -rw-r--r--
Version update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
199
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
- name: add mongo apt key
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
  become: yes
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  get_url:
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
    url: "https://pgp.mongodb.com/server-3.6.asc"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
    dest: "/etc/apt/trusted.gpg.d/mongo-3.6.asc"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
    mode: "0644"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
- name: add mongo apt repo
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
  become: yes
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
  apt_repository: repo="deb [arch=arm64 signed-by=/etc/apt/trusted.gpg.d/mongo-3.6.asc] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
- name: install libssl1.1 deb
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
  become: yes
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
  apt: deb="http://ports.ubuntu.com/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_arm64.deb"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
- name: add unifi apt key
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
  become: yes
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
  get_url:
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
    url: "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x06e85760c0a52c50"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
    dest: "/etc/apt/trusted.gpg.d/unifi.asc"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
    mode: "0644"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
- name: add unifi apt repo
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
  become: yes
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    27
  apt_repository: repo="deb [arch=armhf] https://www.ui.com/downloads/unifi/debian stable ubiquiti"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    28
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    29
- name: update apt package cache
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    30
  become: yes
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    31
  apt: upgrade="dist" update_cache="yes" cache_valid_time="3600"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    32
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    33
- name: install unifi apt packages
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    34
  become: yes
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    35
  apt: name="{{unifi_apt_packages}}"