plex/tasks/main.yaml
changeset 197 1cc658995a70
parent 189 3bd85e235e76
child 198 e1f873a07ea2
equal deleted inserted replaced
196:e07868e39791 197:1cc658995a70
     4 
     4 
     5 - name: add plex apt key
     5 - name: add plex apt key
     6   become: yes
     6   become: yes
     7   get_url:
     7   get_url:
     8     url: "https://downloads.plex.tv/plex-keys/PlexSign.key"
     8     url: "https://downloads.plex.tv/plex-keys/PlexSign.key"
     9     dest: /etc/apt/trusted.gpg.d/plex.asc
     9     dest: "/etc/apt/trusted.gpg.d/plex.asc"
    10     mode: "0644"
    10     mode: "0644"
    11 
    11 
    12 - name: add plex apt repo
    12 - name: add plex apt repo
    13   become: yes
    13   become: yes
    14   apt_repository: repo="deb http://downloads.plex.tv/repo/deb public main"
    14   apt_repository: repo="deb [signed-by=/etc/apt/trusted.gpg.d/plex.asc] http://downloads.plex.tv/repo/deb public main"
    15   notify: restart plex service
    15   notify: restart plex service
    16 
    16 
    17 - name: update apt package cache
    17 - name: update apt package cache
    18   become: yes
    18   become: yes
    19   apt: upgrade="dist" update_cache="yes" cache_valid_time="3600"
    19   apt: upgrade="dist" update_cache="yes" cache_valid_time="3600"