# Package branch specification in openbsd\_pkg module vs. package module

**URL:** <https://forum.ansible.com/t/package-branch-specification-in-openbsd-pkg-module-vs-package-module/23402>\
**Category:** Ansible Project\
**Created:** [January 6, 2017, 10:33pm UTC](https://forum.ansible.com/t/package-branch-specification-in-openbsd-pkg-module-vs-package-module/23402 "2017-01-06T22:33:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darren\_S](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Post date:** [January 6, 2017, 10:33pm UTC](https://forum.ansible.com/t/package-branch-specification-in-openbsd-pkg-module-vs-package-module/23402/1 "2017-01-06T22:33:47Z")

</div>

Greetings,

Attempting to understand why this difference exists installing a  
package on OpenBSD 6.0 using the more general 'package' module vs. the  
underlying installer module 'openbsd\_pkg'. The package is given in  
format supported for recent version of OpenBSD's package tools where  
the branch can be specified using a '%' as the delimiter after package  
name, hence below I use 'php%5.6' to install the PHP 5.6 branch from  
package repo.

OS: OpenBSD 6.0 amd64  
Python: 2.7.12 cpython  
Ansible: 2.2.0.0

Value of variable used in tasks:

php\_ver: "5.6"

Failure case task:

- name: install php  
&nbsp;&nbsp;package:  
&nbsp;&nbsp;&nbsp;&nbsp;name: "{{ item }}"  
&nbsp;&nbsp;&nbsp;&nbsp;state: present  
&nbsp;&nbsp;with\_items:  
&nbsp;&nbsp;&nbsp;&nbsp;- "php%{{ php\_ver }}"  
&nbsp;&nbsp;tags: [httpd, web\_stack, php]

Result:

TASK [openbsd\_httpd : install php]

---

<div class="post-metadata">

**Author:** ![Darren\_S](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Post date:** [March 22, 2017, 9:25am UTC](https://forum.ansible.com/t/package-branch-specification-in-openbsd-pkg-module-vs-package-module/23402/2 "2017-03-22T09:25:49Z")

</div>

Hi,

Any clarification possible on this question?

- Darren
