ref: d4e6240f0f0bebb9bff5cec37d1c8706a23615c1 cisco/deploy/lxd/fast-install.yml -rw-r--r-- 970 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
- name: LXD Fast Installation
  hosts: "*intel*"
  tasks:
  - name: Install binaries
    copy:
      src: "{{ item.src }}"
      dest: "{{ item.dst }}"
      mode: +x
    with_items:
      - src: intel/lxd
        dst: /usr/bin/lxd
      - src: intel/lxc
        dst: /usr/bin/lxc
      - src: intel/libco.so.0.1.0
        dst: /usr/lib/libco.so
      - src: intel/libraft.so
        dst: /usr/lib/libraft.so.0
      - src: intel/libdqlite.so
        dst: /usr/lib/libdqlite.so.0
      - src: intel/libsqlite3.so
        dst: /usr/lib/libsqlite3.so.0

  - name: Remove system sqlite
    file:
      path: "{{ item }}"
      state: absent
    with_items:
      - /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
      - /usr/lib/x86_64-linux-gnu/libsqlite3.so.0

  - name: Install system service
    copy:
      src: lxd.service
      dest: /etc/systemd/system/

  - name: Enable system service
    systemd:
      name: lxd
      state: restarted
      daemon_reload: yes