Ansible批量快速初始化Bluemix 虚拟机
来源:互联网 发布:linux启动oracle 编辑:程序博客网 时间:2024/05/17 22:57
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
$ cat provision.yml
---
- hosts: new
remote_user: ibmcloud
sudo: yes
gather_facts: true
vars:
user: ibmcloud
tasks:
- name: install provisioning tools, git and zsh dstat via yum
yum: name={{ item }} state=installed
when: ansible_os_family == "RedHat"
with_items:
- git
- zsh
- dstat
- htop
- screen
- name: install provisioning tools, git and zsh dstat via apt-get
apt: name={{ item }} state=installed
when: ansible_os_family == "Debian"
with_items:
- git
- zsh
- dstat
- htop
- screen
- name: install zsh as default shell
script: /etc/ansible/setuptools/init_zsh.sh
- name: copy default screen file
copy: src=/etc/ansible/setuptools/screenrc dest=/etc/screenrc mode=0644 owner=root group=root
- name: copy ssh provate key
copy: src=/etc/ansible/setuptools/myprivate.pem dest=/home/{{user}}/.ssh/ mode=0600 owner={{user}} group={{user}}
0 0
- Ansible批量快速初始化Bluemix 虚拟机
- ansible 批量停止iptables
- ansible批量传输文件
- Ansible快速入门
- 05.12 ansible批量自动化管理工具
- ansible 批量重启服务
- ansible-playbook批量部署nginx
- ansible批量设置服务器免密码登录
- ansible +centos7 批量安装zabbix agent
- ansible 批量创建用户 密码注意事项
- Ansible实用案例之批量重装mysql
- ansible-playbook实战之批量安装mysql
- 通过ansible批量设置随机密码
- ansible-playbook实战之批量安装lamp
- 使用 Bluemix™ Live Sync 快速更新 Bluemix 上运行的应用程序实例
- 用Bluemix虚拟机搭建自己的博客系统
- Bluemix的三台虚拟机做MongoDB Replica Set
- 如何在bluemix的虚拟机上部署selenium hub
- JavaWEB之Filter的应用场景(3)
- 利用Extension Method在不修改类的前提下做扩展方法
- BitMap二次采样
- C gdb打印宏
- Allegro---层叠结构设置
- Ansible批量快速初始化Bluemix 虚拟机
- Gradle编译错误
- jQuery接受后台传递的List
- 纸盒包装图案设计
- 如何编辑修改PDF文档
- google Tensorflow游乐场
- android textview中划线,下划线
- MyBatis与Spring设置callSettersOnNulls
- [数学] codeforces 676E. The Last Fight Between Human and AI