unifi/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 04 Feb 2024 20:27:19 -0600
changeset 227 2e0366f2dcbe
parent 223 de03976c2df1
permissions -rw-r--r--
Tons of updates to fix migration to new server.
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
227
2e0366f2dcbe Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents: 223
diff changeset
    16
  apt: deb="http://ports.ubuntu.com/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_{{arch}}.deb"
199
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
223
de03976c2df1 Unifi-7.5 release doesnt seem to support arm so I held the version at 7.4.
Luke Hoersten <luke@hoersten.org>
parents: 199
diff changeset
    18
# To accept codename change:
de03976c2df1 Unifi-7.5 release doesnt seem to support arm so I held the version at 7.4.
Luke Hoersten <luke@hoersten.org>
parents: 199
diff changeset
    19
# 1. sudo apt update
de03976c2df1 Unifi-7.5 release doesnt seem to support arm so I held the version at 7.4.
Luke Hoersten <luke@hoersten.org>
parents: 199
diff changeset
    20
# 2. sudo apt-get upgrade -y
de03976c2df1 Unifi-7.5 release doesnt seem to support arm so I held the version at 7.4.
Luke Hoersten <luke@hoersten.org>
parents: 199
diff changeset
    21
199
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
- name: add unifi apt key
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
  become: yes
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
  get_url:
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
    url: "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x06e85760c0a52c50"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
    dest: "/etc/apt/trusted.gpg.d/unifi.asc"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    27
    mode: "0644"
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: add unifi apt repo
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    30
  become: yes
223
de03976c2df1 Unifi-7.5 release doesnt seem to support arm so I held the version at 7.4.
Luke Hoersten <luke@hoersten.org>
parents: 199
diff changeset
    31
  apt_repository: repo="deb [arch=armhf signed-by=/etc/apt/trusted.gpg.d/unifi.asc] https://www.ui.com/downloads/unifi/debian unifi-7.4 ubiquiti"
199
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: update apt package cache
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: upgrade="dist" update_cache="yes" cache_valid_time="3600"
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    36
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    37
- name: install unifi apt packages
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    38
  become: yes
9aa5f284ea10 Added unifi ansible role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    39
  apt: name="{{unifi_apt_packages}}"