2018年 2月
---- hosts: servers gather_facts: no become: yes tasks: - apt: name: apt-transport-https - apt: name: ca-certificates - apt: name: curl - apt: name: software-properties-common - shell: "apt list --installed |grep docker-ce" register: docker_ce_installed ignore_errors: True - when: docker_ce_installed|failed block: - shell: apt-key list Docker register: apt_key_exists - when: not apt_key_exists.stdout shell: curl -fsSL https://download.docker.com/linux/ubuntu/gpg |apt-key add - - shell: grep download.docker.com /etc/apt/sources.list register: apt_source_docker_exists ignore_errors: True - when: apt_source_docker_exists|failed shell: add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" - apt: update_cache: yes - apt: name: docker-ce
最近の投稿
最近の製作物
カテゴリ
- Django (66)
- Python (49)
- mac (22)
- Linux (17)
- kubernetes (15)
- iOS (11)
- MySQL (10)
- Raspberry-Pi (8)
- AWS (7)
- PHP (6)
- Javascript (5)
- PCその他 (5)
- Docker (5)
- Android (4)
- 自転車 (4)
- Svelte (4)
- nuxt (3)
- css (3)
- nginx (3)
- Bootstrap (3)
- Flutter (3)
- シェルスクリプト(Bash/Zsh) (3)
- 工作 (2)
- Windows (2)
- HTML (2)
- Node (1)
- 電子ブック (1)
- Rails (1)
- マイクロコントローラー (1)
- less (1)
- Ansible (1)
- React (1)
- kubernetes (1)