腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
有没有一种简单
的
方法可以用
ansible
来"
git
子
模块
添加
git
@url“?
ansible
、
git-submodules
直截了当
的
问题我
的
剧本在gitlab上创建了一个新项目,然后在所有主机上克隆它。现在我想让一个主机进入项目并创建一个
带有
"
git
add
git
@ .gitmodules -url.
git
“
的
文件。
ansible
的
git
模块
只有track_submodules参数,但这会更新子
模块
,这将在以后有用。在这种情况下,我不喜欢使用shell
模块
。本质上,我只是
浏览 2
提问于2019-11-15
得票数 0
2
回答
克隆
Git
库
git
、
ansible
、
bitbucket
我编写了一个
ansible
剧本,它创建了一个新
的
BitBucket存储库。现在,我希望根据BitBucket中存储库源代码下面显示
的
说明配置存储库:
浏览 1
提问于2019-01-15
得票数 1
1
回答
我
的
Ansible
版本是2.8,但是
Git
模块
的
唯一返回值是2.5
git
、
ansible
Ansible
2.5
的
Git
模块
只返回几个唯一
的
返回值,而
Ansible
2.8
的
git
模块
返回更多
的
唯一返回值,比如
git
_dir_now。我在Ubuntu18.04LTS上运行
Ansible
2.8,使用gid
模块
,我得到
的
唯一返回值没有
git
_dir_now。
Ansible
2.5
Git</em
浏览 6
提问于2019-08-09
得票数 0
2
回答
显示错误回溯
的
Ansible
命令
ansible
运行
ansible
命令时,会显示以下错误:File "/usr/local/bin/
ansible
", line 4, inimport('pkg_resources').run_script('
ansible
==2.0.0', '
ansible
') File "/usr/lib/python2
浏览 3
提问于2015-06-28
得票数 0
0
回答
带有
Git
模块
的
Ansible
git
、
ansible
我有以下攻略,我正在尝试构建它,以便在bitbacket中简单地下载文件
的
最新版本- hosts: 127.0.0.1 connection: local any_errors_fatal: True - /home/r_
ansible
/playbooks/group_vars/
git
_vars.yml -
浏览 1
提问于2017-06-19
得票数 0
1
回答
由web钩子自动部署
的
不可测
git
deployment
、
git
、
github
、
ansible-playbook
如何使用
ansible
从托管在github / bitbucket上
的
git
存储库自动部署到ubuntu服务器?在github重编故事设置->webhooks,我可以添加web钩子
的
拉到主人,这将调用我
的
服务器我有用node.js编写
的
自制解决方案,它从
git
中提取并重新启动服务,但希望迁移到
ansible
我刚接触过
ansible
,但对可读剧本知之甚少 有一个github网页钩子
模块
用于http
浏览 0
提问于2018-02-07
得票数 1
1
回答
如何在mac中安装Juniper.junos
ansible
?
automation
、
ansible
、
ansible-galaxy
、
juniper
、
pyez
我试图在我
的
Mac上安装最新版本
的
Juniper.junos: -downloading role from https://github.com/Juniper/
ansible
-junos-stdlib/archivePaths checked for this pl
浏览 5
提问于2018-03-29
得票数 1
回答已采纳
1
回答
使用
Ansible
创建启动Config失败
amazon-web-services
、
ansible
在新
的
AMI创建之后,我尝试用
ansible
在AWS上创建新
的
启动Config,下面是我
的
脚本剧本: tasks: wait: yes state: present{
ansible
_date_time.hour }}-{{ <e
浏览 1
提问于2015-08-25
得票数 0
回答已采纳
2
回答
如何使用
Ansible
将代码从本地
git
存储库部署到远程服务器
git
、
ansible
我使用
的
是
Ansible
2.5。我需要从本地(控制器)
git
存储库部署代码到远程服务器。我正在尝试一个
带有
git
模块
的
Ansible
-playbook,它只能将代码从本地存储库部署到另一个本地路径,或者将远程存储库部署到另一个远程路径。它基于主机配置。-
git
: dest: &
浏览 1
提问于2019-04-02
得票数 4
1
回答
如何在预览中使用
ansible
模块
?
amazon-web-services
、
ansible
、
amazon-elb
我正在尝试使用elb_target_group和elb_application_lb
模块
,根据文档网站
的
说明,New in version 2.4和当前
的
ansible
版本是2.3ERROR! no action detected in task.
浏览 0
提问于2017-07-15
得票数 0
4
回答
使用
Ansible
进行SSH代理转发
git
、
ssh
、
ansible
、
ssh-agent
我使用
的
是带ssh代理转发()
的
Ansible
1.5.3和
Git
。我可以登录到我使用
Ansible
管理
的
服务器,并测试我到
git
的
连接是否配置正确:Hi gituser!问题:当我尝试使用
Ansible
命令
模块
进行上面显示
的
相同测试时。失败,并显示“权限被拒绝”。
Ansible
输出<em
浏览 1
提问于2014-06-10
得票数 70
1
回答
缺失SimpleJson
模块
python
、
ansible
我有一个
带有
CentOS版本5.6 (Final)
的
机器运行“
Ansible
剧本”。我在目标机器上安装了simplejson,
模块
可以从python解释器中导入。但我
的
剧本还是失败了,出现了下面的错误。
git
:
浏览 1
提问于2015-04-28
得票数 0
回答已采纳
3
回答
如何在
ansible
git
模块
中使用远程计算机
的
SSH密钥
git
、
ssh
、
ansible
、
ssh-keys
、
ansible-playbook
我一直在尝试让
Ansible
提供一台远程机器,我想让远程机器使用自己
的
密钥进行设置,并且能够从Bitbucket克隆
git
存储库。用户设置好了,有了自己
的
id_rsa.pub,密钥已经注册到了bitbucket。 但是,当我使用
Ansible
Git
模块
时,该
模块
似乎总是尝试使用运行playbook
的
机器上
的
密钥。如何让
git
模块
从远程机器使用id_rsa.pub?相关
的<
浏览 0
提问于2015-04-19
得票数 18
1
回答
Ansible
- GCP动态库存和标签
ansible
、
google-cloud-platform
我刚刚开始使用
ansible
,并且已经成功地将
ansible
配置为从GCP获取动态库存。我能够对所有实例成功运行ping
模块
:我还可以根据主机名对单个实例成功运行ping
模块
:
ansible
-i ~/
git
/
ansible
/inventory instance-
浏览 11
提问于2017-12-29
得票数 2
回答已采纳
1
回答
将多个目录
的
内容与GitHub回购版本同步
的
好方法是什么?
cron
、
git
、
github
我为一家公司工作,为我们
的
众多WordPress站点网络维护大量定制
的
WordPress插件和主题。我开始编写一个WordPress插件,它允许我将已安装
的
插件和主题指向它们
的
GitHub URL,并使之能够直观地看到WordPress UI中
的
更新何时可用,并以这种方式进行更新,到目前为止,这种方法是有希望
的
我觉得这是一个很普通
的
用例,应该有一个标准化
的
解决方案,但是每次我在谷歌上搜索它时,它都指向我通过GitHub存储库设置webhooks
浏览 0
提问于2021-03-16
得票数 0
1
回答
用不可测
模块
“-f”模拟“码头建造docker_image”
docker
、
ansible
、
docker-image
现在,我想通过
ansible
来提供容器和构建码头映像。当然,我可以用shell、命令或原始
模块
来完成这个任务,但是我看到了Docker
的
特殊
模块
。UPD --我需要这些操作
的
例子:[root@docker build_e
浏览 4
提问于2016-10-27
得票数 0
回答已采纳
1
回答
不使用“with_item”
的
命令
git
、
ansible
、
yaml
我是
ansible
的
新手,我试图用最简单
的
方法为mongodb备份编写一个基本
的
剧本。以下是我要做
的
事:- hosts: mongo - name: Mongo Dump -
git
commit -m "Updates"我
浏览 0
提问于2016-03-02
得票数 1
2
回答
如何在
ansible
中创建自定义
模块
module
、
ansible
这是我为从当前系统获取日期时间而编写
的
自定义
模块
。我已经将
模块
放在/usr/share/my_ module文件夹中。module.fail_json(msg="Something fatal happened")from
ansible
.module_utils.
浏览 3
提问于2017-08-27
得票数 0
回答已采纳
4
回答
如何使用
ansible
进行
git
拉/推
configuration-management
、
centos7
、
ansible
我正试着用
ansible
做一个
git
拉/推。我在一台服务器上运行
ansible
,并希望在远程主机上自动执行或编排
git
拉/推。现在,由于我在
ansible
doc网站上没有找到这样做
的
mmodule,所以我决定使用脚本
模块
进行脚本路由。 问题是,当运行脚本中调用
的
git
拉时,出现了
ansible
hags。有人知道如何使用
ansible
运行
git
拉/推
浏览 0
提问于2015-02-10
得票数 17
回答已采纳
2
回答
如何检查可测
模块
核心版本?
ansible
这意味着
ansible
模块
与
ansible
版本相同吗? 如果没有,如何检查我有哪个版本
的
ansible
模块
?
浏览 3
提问于2017-08-09
得票数 2
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
即时通信 IM
活动推荐
运营活动
广告
关闭
领券