ansible: add /etc/mercurial/hgrc to Ansible control on hgssh
Puppet was recently changed to not manage this file. The Puppet template
hasn't changed since the file was imported into Ansible. So this is
pretty straightforward.
The hg-ssh role isn't yet ready to be used on hgssh1. In time...
--- a/ansible/deploy-hgmo-extensions.yml
+++ b/ansible/deploy-hgmo-extensions.yml
@@ -1,26 +1,35 @@
---
-- hosts:
- - hgssh1.dmz.scl3.mozilla.com
- - hgweb-prod
+- hosts: hgssh1.dmz.scl3.mozilla.com
tasks:
- name: notify IRC of deployment
irc: server=irc.mozilla.org
port=6697
use_ssl=true
channel="#vcs"
nick=hg-deploy-bot
color=red
msg="Starting deploy of hooks and extensions to hg.mozilla.org"
delegate_to: 127.0.0.1
run_once: true
+- hosts:
+ - hgssh1.dmz.scl3.mozilla.com
+ - hgweb-prod
+
+ tasks:
- include: tasks/hgmo-extensions.yml
+- hosts: hgssh1.dmz.scl3.mozilla.com
+ tasks:
+ # TODO we should integrate the hg-ssh role.
+ - name: install global hgrc
+ copy: src=roles/hg-ssh/files/hgrc dest=/etc/mercurial/hgrc mode=0644 owner=root group=root
+
- name: notify IRC of deployment
irc: server=irc.mozilla.org
port=6697
use_ssl=true
channel="#vcs"
nick=hg-deploy-bot
color=red
msg="Finished deploy of hooks and extensions to hg.mozilla.org"