diff --git a/roles/dev-tools/tasks/main.yml b/roles/dev-tools/tasks/main.yml index 969a2a4..672954f 100644 --- a/roles/dev-tools/tasks/main.yml +++ b/roles/dev-tools/tasks/main.yml @@ -11,6 +11,7 @@ - name: install powerline-go shell: curl -sLo /tmp/powerline-go https://github.com/justjanne/powerline-go/releases/download/v1.12.1/powerline-go-linux-amd64 && install -m 755 /tmp/powerline-go /usr/local/bin/powerline-go-1.12.1 && rm -f /tmp/powerline-go && ln -sf /usr/local/bin/powerline-go-1.12.1 /usr/local/bin/powerline-go args: + warn: False creates: /usr/local/bin/powerline-go-1.12.1 - name: install rustup become: no @@ -27,16 +28,16 @@ shell: kerl update releases args: creates: ~/.kerl/otp_releases -- name: build erlang 21.0 +- name: build erlang 22.0 become: no - shell: kerl build 21.0 21.0 + shell: kerl build 22.0 22.0 args: - creates: ~/.kerl/builds/21.0 -- name: install erlang 21.0 + creates: ~/.kerl/builds/22.0 +- name: install erlang 22.0 become: no - shell: kerl install 21.0 + shell: kerl install 22.0 args: - creates: ~/.kerl/installs/21.0 + creates: ~/.kerl/installs/22.0 - name: install kiex become: no shell: curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/install | bash -s @@ -45,6 +46,6 @@ creates: ~/.kiex/bin/kiex - name: install elixir become: no - shell: . ~/bin/kerl.setup.bash && kiex install 1.7.4 + shell: . ~/bin/kerl.setup.bash && kiex install 1.9.0 args: - creates: ~/.kiex/elixirs/elixir-1.7.4 + creates: ~/.kiex/elixirs/elixir-1.9.0 diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 691c4c8..ec1fd85 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -8,22 +8,8 @@ repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" state: present update_cache: true -- name: install apt applications - apt: - name: libvirt-clients,libvirt-daemon-system,qemu-kvm,virt-manager,virt-top,virt-goodies,vagrant,vagrant-libvirt,vagrant-mutate,xsltproc,fop,docker-ce - state: present - name: install docker-compose shell: curl -sLo /tmp/docker-compose https://github.com/docker/compose/releases/download/1.24.0/docker-compose-Linux-x86_64 && install -m 755 /tmp/docker-compose /usr/local/bin/docker-compose-1.24.0 && rm -f /tmp/docker-compose && ln -sf /usr/local/bin/docker-compose-1.24.0 /usr/local/bin/docker-compose args: warn: False creates: /usr/local/bin/docker-compose-1.24.0 -- name: install docker-machine - shell: curl -sLo docker-machine https://github.com/docker/machine/releases/download/v0.16.0/docker-machine-linux-x86_64 && install -m 755 docker-machine /usr/local/bin/docker-machine-0.16.0 && rm -f docker-machine && ln -sf /usr/local/bin/docker-machine-0.16.0 /usr/local/bin/docker-machine - args: - warn: False - creates: /usr/local/bin/docker-machine-0.16.0 -- name: install docker-machine-driver-kvm2 - shell: curl -sLo docker-machine-driver-kvm2 https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2 && install -m 755 docker-machine-driver-kvm2 /usr/local/bin/docker-machine-driver-kvm2 && rm -f docker-machine-driver-kvm2 - args: - warn: False - creates: /usr/local/bin/docker-machine-driver-kvm2 diff --git a/roles/k8s/tasks/main.yml b/roles/k8s/tasks/main.yml index d538674..1ba426f 100644 --- a/roles/k8s/tasks/main.yml +++ b/roles/k8s/tasks/main.yml @@ -28,34 +28,35 @@ name: awscli,saws state: present - name: install kubectl - shell: curl -sLo /tmp/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.11.3/bin/linux/amd64/kubectl && install -m 755 /tmp/kubectl /usr/local/bin/kubectl-1.11.3 && rm -f /tmp/kubectl && ln -sf /usr/local/bin/kubectl-1.11.3 /usr/local/bin/kubectl + shell: curl -sLo /tmp/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.15.0/bin/linux/amd64/kubectl && install -m 755 /tmp/kubectl /usr/local/bin/kubectl-1.15.0 && rm -f /tmp/kubectl && ln -sf /usr/local/bin/kubectl-1.15.0 /usr/local/bin/kubectl args: warn: False - creates: /usr/local/bin/kubectl-1.11.3 + creates: /usr/local/bin/kubectl-1.15.0 - name: install kops shell: curl -sLo /tmp/kops -L https://github.com/kubernetes/kops/releases/download/1.10.0/kops-linux-amd64 && install -m 755 /tmp/kops /usr/local/bin/kops-1.10.0 && rm -f /tmp/kops && ln -sf /usr/local/bin/kops-1.10.0 /usr/local/bin/kops args: warn: False - creates: /usr/local/bin/kops-1.10.0 + creates: /usr/local/bin/kops-1.12.2 - name: install minikube - shell: curl -sLo /tmp/minikube https://storage.googleapis.com/minikube/releases/v1.1.1/minikube-linux-amd64 && install -m 755 /tmp/minikube /usr/local/bin/minikube-1.1.1 && rm -f /tmp/minikube && ln -sf /usr/local/bin/minikube-1.1.1 /usr/local/bin/minikube + shell: curl -sLo /tmp/minikube https://storage.googleapis.com/minikube/releases/v1.12.2/minikube-linux-amd64 && install -m 755 /tmp/minikube /usr/local/bin/minikube-1.12.2 && rm -f /tmp/minikube && ln -sf /usr/local/bin/minikube-1.12.2 /usr/local/bin/minikube args: warn: False - creates: /usr/local/bin/minikube-1.1.1 + creates: /usr/local/bin/minikube-1.12.2 - name: install helm - shell: curl -sLo /tmp/helm.tar.gz https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-linux-amd64.tar.gz && mkdir -p /tmp/helm && tar xzf /tmp/helm.tar.gz -C /tmp/helm && install -m 755 /tmp/helm/linux-amd64/helm /usr/local/bin/helm-2.13.1 && rm -rf /tmp/helm* && ln -sf /usr/local/bin/helm-2.13.1 /usr/local/bin/helm + shell: curl -sLo /tmp/helm.tar.gz https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && mkdir -p /tmp/helm && tar xzf /tmp/helm.tar.gz -C /tmp/helm && install -m 755 /tmp/helm/linux-amd64/helm /usr/local/bin/helm-2.14.1 && rm -rf /tmp/helm* && ln -sf /usr/local/bin/helm-2.14.1 /usr/local/bin/helm args: - creates: /usr/local/bin/helm-2.13.1 + warn: False + creates: /usr/local/bin/helm-2.14.1 - name: install k9s - shell: curl -sLo /tmp/k9s.tar.gz https://github.com/derailed/k9s/releases/download/0.6.7/k9s_0.6.7_Linux_x86_64.tar.gz && tar xzf /tmp/k9s.tar.gz -C /tmp && install -m 755 /tmp/k9s /usr/local/bin/k9s-0.6.7 && rm -f /tmp/k9s* && ln -sf /usr/local/bin/k9s-0.6.7 /usr/local/bin/k9s + shell: curl -sLo /tmp/k9s.tar.gz https://github.com/derailed/k9s/releases/download/0.7.11/k9s_0.7.11_Linux_x86_64.tar.gz && tar xzf /tmp/k9s.tar.gz -C /tmp && install -m 755 /tmp/k9s /usr/local/bin/k9s-0.7.11 && rm -f /tmp/k9s* && ln -sf /usr/local/bin/k9s-0.7.11 /usr/local/bin/k9s args: warn: False - creates: /usr/local/bin/k9s-0.6.7 + creates: /usr/local/bin/k9s-0.7.11 - name: install popeye - shell: curl -sLo /tmp/popeye.tar.gz https://github.com/derailed/popeye/releases/download/v0.3.6/popeye_0.3.6_Linux_x86_64.tar.gz && tar xzf /tmp/popeye.tar.gz -C /tmp && install -m 755 /tmp/popeye /usr/local/bin/popeye-0.3.6 && rm -f /tmp/popeye* && ln -sf /usr/local/bin/popeye-0.3.6 /usr/local/bin/popeye + shell: curl -sLo /tmp/popeye.tar.gz https://github.com/derailed/popeye/releases/download/v0.3.12/popeye_0.3.12_Linux_x86_64.tar.gz && tar xzf /tmp/popeye.tar.gz -C /tmp && install -m 755 /tmp/popeye /usr/local/bin/popeye-0.3.12 && rm -f /tmp/popeye* && ln -sf /usr/local/bin/popeye-0.3.12 /usr/local/bin/popeye args: warn: False - creates: /usr/local/bin/popeye-0.3.6 + creates: /usr/local/bin/popeye-0.3.12 - name: install stern shell: curl -sLo /tmp/stern_linux_amd64 https://github.com/wercker/stern/releases/download/1.10.0/stern_linux_amd64 && install -m 755 /tmp/stern_linux_amd64 /usr/local/bin/stern-1.10.0 && rm -f /tmp/stern_linux_amd64 && ln -sf /usr/local/bin/stern-1.10.0 /usr/local/bin/stern args: diff --git a/roles/libvirt/tasks/main.yml b/roles/libvirt/tasks/main.yml new file mode 100644 index 0000000..d4057e9 --- /dev/null +++ b/roles/libvirt/tasks/main.yml @@ -0,0 +1,15 @@ +--- +- name: install apt applications + apt: + name: libvirt-clients,libvirt-daemon-system,qemu-kvm,virt-manager,virt-top,virt-goodies,vagrant,vagrant-libvirt,vagrant-mutate,xsltproc,fop,docker-ce + state: present +- name: install docker-machine + shell: curl -sLo docker-machine https://github.com/docker/machine/releases/download/v0.16.0/docker-machine-linux-x86_64 && install -m 755 docker-machine /usr/local/bin/docker-machine-0.16.0 && rm -f docker-machine && ln -sf /usr/local/bin/docker-machine-0.16.0 /usr/local/bin/docker-machine + args: + warn: False + creates: /usr/local/bin/docker-machine-0.16.0 +- name: install docker-machine-driver-kvm2 + shell: curl -sLo docker-machine-driver-kvm2 https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2 && install -m 755 docker-machine-driver-kvm2 /usr/local/bin/docker-machine-driver-kvm2 && rm -f docker-machine-driver-kvm2 + args: + warn: False + creates: /usr/local/bin/docker-machine-driver-kvm2