当前位置:网站首页>ansible yum仓库
ansible yum仓库
2022-04-22 22:36:00 【m0_64265309】
仓库1 :
Name: RH294_Base
Description: RH294 base software
Base urt: file:///mnt/BaseOS
不需要验证钦件包 GPG 签名
启用此软件仓库
仓库 2:
Name: RH294_Stream
Description : RH294 stream software
Base url:file:///mnt/AppStream
不需要验证软件包 GPG 签名
yum_repository
[student@server ~]$ ansible all -m yum_repository -a 'name=RH294_Base description="RH294 base software" baseurl="file:///mnt/BaseOS" gpgcheck=no '
[student@server ~]$ ansible all -m yum_repository -a 'name=RH294_Stream description="RH294 stream software" baseurl="file:///mnt/AppStream" gpgcheck=no '
blockinfile
[student@server ~]$ ansible all -m blockinfile -a 'path=/etc/yum.repos.d/RH294.base block="Name: RH294_Base\nDescription: RH294 base software\nBaseurl: file:///mnt/BaseOS/ngpgcheck=0"'
[student@server ~]$ ansible all -m blockinfile -a 'path=/etc/yum.repos.d/RH294.Appstream block="Name: RH294_Stream\nDescription : RH294 stream software\nBaseurl:file:///mnt/AppStream/ngpgcheck=0"'
lineinfile
[student@server ~]$ ansible node1 -m lineinfile -a 'path=/etc/yum.repos.d/RH294.base line=Name:" RH294_Base\nDescription:RH294 base software\nBaseurl: file:///mnt/BaseOS/ngpgcheck=0"'
copy
[student@server ~]$ ansible node1 -m copy -a "src=/etc/yum.repos.d/base.repo dest=/etc/yum.repos.d/base.repo"
版权声明
本文为[m0_64265309]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_64265309/article/details/124340111
边栏推荐
- Advanced multithreading (6) -- locking mechanism
- Infix to suffix expression (inverse Polish) to prefix expression (polish)
- GBase 8s V8.8 SQL 指南:教程-6.1.2(2)
- 90%的测试工程师是这样使用Postman做接口测试的……
- L1-072 刮刮彩票 (20 分)
- GBase 8s V8. 8 SQL Guide: Tutorial - 6.2.1 (4)
- 时间戳有什么作用,如何申请?
- On the law of enterprise informatization
- 交换机的接口有哪些?一文带你记住其名称及作用
- 多线程进阶(七)----乐观锁和悲观锁
猜你喜欢

Advanced multithreading (6) -- locking mechanism

90%的测试工程师是这样使用Postman做接口测试的……

Rasa's new training method of Rasa

基于Multisim的波形发生器

并发的可达性分析(三色标记法)

Llvm learning (I) - getting to know llvm

【Paper】2019_ Distributed fixed-time consensus-based formation tracking for multiple nonholonomic whee

41.0:GemBox. Spreadsheet|. Document|. Pdf|. Presentation

10万开发者涌入“酷应用”,钉钉押注场景化
![[MRCTF2020]Ez_ bypass](/img/11/6278377c6273eca16716bc73c8a63b.png)
[MRCTF2020]Ez_ bypass
随机推荐
数组去重-基本数据类型
基于Multisim的波形发生器
GBase 8s V8.8 SQL 指南:教程-6.2.1(4)
Pangolin installation error: Make: * * * there are no rules to create the target "pypangolin_pip_install". stop it.
CVPR 2022:微笑识别也带性别歧视?浙大武大联合蚂蚁Adobe搞了个公平性提升框架
基于51单片机的自动浇花系统
[easy to understand and intensive learning] 1 Introduction
防ddos攻击转发IP,棋牌游戏高防IP好用吗?
Flutter 一文搞定图片选择和图片上传
Brits: bidirectional recurrent impaction for time series
GBase 8s V8. 8 SQL Guide: Tutorial - 6.2.2 (1)
CAP 理论
[Luogu] p1162 filling color (BFS)
多线程进阶(七)----乐观锁和悲观锁
L1-066 猫是液体 (5 分)
ASP connect MSSQL database statement
API 网关实现功能
On the law of enterprise informatization
ASP连接MSSQL数据库语句
KunlunDB对MySQL私有DML语法的支持