Skip to content

Instantly share code, notes, and snippets.

@weirdbricks
Created February 15, 2014 03:36
Show Gist options
  • Save weirdbricks/9014214 to your computer and use it in GitHub Desktop.
Save weirdbricks/9014214 to your computer and use it in GitHub Desktop.
ansible notes on converting the packaging system and installing apache in ad-hoc mode
ansible jail1 -m raw -a "pkg_add -r pkg python27"
ansible jail1 -m file -a "dest=/usr/local/etc/pkg/repos/ owner=root group=wheel state=directory"
ansible jail1 -m copy -a "src=/root/FreeBSD.conf dest=/usr/local/etc/pkg/repos/FreeBSD.conf"
ansible jail1 -m raw -a "pkg2ng"
ansible jail1 -m raw -a "pkg update -f"
ansible jail1 -m raw -a "pkg upgrade -y"
ansible jail1 -m raw -a "pkg update -f"
ansible jail1 -m pkgng -a "name=apache22 state=present cached=no"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment